summaryrefslogtreecommitdiffstats
path: root/usr.bin/find/operator.c
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2002-02-27 17:57:00 +0000
committerdwmalone <dwmalone@FreeBSD.org>2002-02-27 17:57:00 +0000
commit9540738a74cc62036ba61604d3378881dec9422f (patch)
treeaf6c65f1bac5a3a336dbe37b43e09cf9c44dc83a /usr.bin/find/operator.c
parent50b0eac3626e07f7118cd0418d37c28d76235387 (diff)
downloadFreeBSD-src-9540738a74cc62036ba61604d3378881dec9422f.zip
FreeBSD-src-9540738a74cc62036ba61604d3378881dec9422f.tar.gz
1) Remove -Wall from Makefile.
2) WARNs fixes (rename option to lookup_option to avoid shadowing, rename argv to argv1 to avoid shadowing, const stuff, prototypes, __unused). 3) Remove "register"s.
Diffstat (limited to 'usr.bin/find/operator.c')
-rw-r--r--usr.bin/find/operator.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/usr.bin/find/operator.c b/usr.bin/find/operator.c
index 2fae749..8139d54 100644
--- a/usr.bin/find/operator.c
+++ b/usr.bin/find/operator.c
@@ -51,6 +51,9 @@ static const char rcsid[] =
#include "find.h"
+static PLAN *yanknode __P((PLAN **));
+static PLAN *yankexpr __P((PLAN **));
+
/*
* yanknode --
* destructively removes the top from the plan
@@ -78,7 +81,7 @@ static PLAN *
yankexpr(planp)
PLAN **planp; /* pointer to top of plan (modified) */
{
- register PLAN *next; /* temp node holding subexpression results */
+ PLAN *next; /* temp node holding subexpression results */
PLAN *node; /* pointer to returned node or expression */
PLAN *tail; /* pointer to tail of subplan */
PLAN *subplan; /* pointer to head of ( ) expression */
@@ -131,8 +134,8 @@ PLAN *
paren_squish(plan)
PLAN *plan; /* plan with ( ) nodes */
{
- register PLAN *expr; /* pointer to next expression */
- register PLAN *tail; /* pointer to tail of result plan */
+ PLAN *expr; /* pointer to next expression */
+ PLAN *tail; /* pointer to tail of result plan */
PLAN *result; /* pointer to head of result plan */
result = tail = NULL;
@@ -169,9 +172,9 @@ PLAN *
not_squish(plan)
PLAN *plan; /* plan to process */
{
- register PLAN *next; /* next node being processed */
- register PLAN *node; /* temporary node used in f_not processing */
- register PLAN *tail; /* pointer to tail of result plan */
+ PLAN *next; /* next node being processed */
+ PLAN *node; /* temporary node used in f_not processing */
+ PLAN *tail; /* pointer to tail of result plan */
PLAN *result; /* pointer to head of result plan */
tail = result = NULL;
@@ -233,8 +236,8 @@ PLAN *
or_squish(plan)
PLAN *plan; /* plan with ors to be squished */
{
- register PLAN *next; /* next node being processed */
- register PLAN *tail; /* pointer to tail of result plan */
+ PLAN *next; /* next node being processed */
+ PLAN *tail; /* pointer to tail of result plan */
PLAN *result; /* pointer to head of result plan */
tail = result = next = NULL;
OpenPOWER on IntegriCloud