summaryrefslogtreecommitdiffstats
path: root/usr.bin/find
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>1999-09-06 20:21:19 +0000
committerbillf <billf@FreeBSD.org>1999-09-06 20:21:19 +0000
commit3f6da772cd7399dfaf00bc3990fb43e68a3e73ce (patch)
tree3423d49d8c42fef70e848a7b4c54dad191e91b12 /usr.bin/find
parentb449d99ed794478ef1ab3beec763d7811479c3ed (diff)
downloadFreeBSD-src-3f6da772cd7399dfaf00bc3990fb43e68a3e73ce.zip
FreeBSD-src-3f6da772cd7399dfaf00bc3990fb43e68a3e73ce.tar.gz
-Wall: remove unused variable, initialize variable to avoid gcc stupidity.
Diffstat (limited to 'usr.bin/find')
-rw-r--r--usr.bin/find/function.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c
index d8a590e..1c813d9 100644
--- a/usr.bin/find/function.c
+++ b/usr.bin/find/function.c
@@ -393,7 +393,6 @@ f_execdir(plan, entry)
register PLAN *plan;
FTSENT *entry;
{
- extern int dotfd;
register int cnt;
pid_t pid;
int status;
@@ -1248,6 +1247,7 @@ f_expr(plan, entry)
register PLAN *p;
register int state;
+ state = 0;
for (p = plan->p_data[0];
p && (state = (p->eval)(p, entry)); p = p->next);
return (state);
@@ -1283,6 +1283,7 @@ f_not(plan, entry)
register PLAN *p;
register int state;
+ state = 0;
for (p = plan->p_data[0];
p && (state = (p->eval)(p, entry)); p = p->next);
return (!state);
@@ -1308,6 +1309,7 @@ f_or(plan, entry)
register PLAN *p;
register int state;
+ state = 0;
for (p = plan->p_data[0];
p && (state = (p->eval)(p, entry)); p = p->next);
OpenPOWER on IntegriCloud