diff options
author | billf <billf@FreeBSD.org> | 1999-09-06 20:21:19 +0000 |
---|---|---|
committer | billf <billf@FreeBSD.org> | 1999-09-06 20:21:19 +0000 |
commit | 3f6da772cd7399dfaf00bc3990fb43e68a3e73ce (patch) | |
tree | 3423d49d8c42fef70e848a7b4c54dad191e91b12 /usr.bin/find | |
parent | b449d99ed794478ef1ab3beec763d7811479c3ed (diff) | |
download | FreeBSD-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.c | 4 |
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); |