summaryrefslogtreecommitdiff
path: root/locate
diff options
context:
space:
mode:
authorJames Youngman <jay@gnu.org>2005-03-04 10:39:13 +0000
committerJames Youngman <jay@gnu.org>2005-03-04 10:39:13 +0000
commit4404b8ae55ca2004c24d19ab31334dd23d6463ea (patch)
tree03339a2c76d6bf54839ca251dc8c7611d4554b4f /locate
parent7ee6babe438a64be3ea885a11e22d58491681be3 (diff)
downloadfindutils-4404b8ae55ca2004c24d19ab31334dd23d6463ea.tar.gz
Eliminated some compiler warnings
Diffstat (limited to 'locate')
-rw-r--r--locate/locate.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/locate/locate.c b/locate/locate.c
index 938bc90d..ee8d9be3 100644
--- a/locate/locate.c
+++ b/locate/locate.c
@@ -438,7 +438,8 @@ static int
visit_regex(const char *munged_filename, const char *original_filename, void *context)
{
struct regular_expression *p = context;
-
+ (void) original_filename;
+
if (0 == regexec(&p->re, munged_filename, 0u, NULL, 0))
return VISIT_CONTINUE; /* match */
else
@@ -453,7 +454,8 @@ visit_stats(const char *munged_filename, const char *original_filename, void *co
size_t len = strlen(original_filename);
const char *s;
int highbit, whitespace, newline;
-
+ (void) munged_filename;
+
++(p->total_filename_count);
p->total_filename_length += len;