BSD 4_3 release
[unix-history] / usr / src / usr.bin / find / find.c
index 022d546..e948647 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef        lint
 #ifndef        lint
-static char *sccsid = "@(#)find.c      4.14 (Berkeley) %G%";
+static char *sccsid = "@(#)find.c      4.17 (Berkeley) 1/31/86";
 #endif
 
 #include <stdio.h>
 #endif
 
 #include <stdio.h>
@@ -201,7 +201,8 @@ struct anode *e3() { /* parse parens and predicates */
                nouser(), nogroup(), ls(), dummy();
        struct anode *p1;
        int i;
                nouser(), nogroup(), ls(), dummy();
        struct anode *p1;
        int i;
-       register char *a, *b, s;
+       register char *a, *b;
+       register int s;
 
        a = nxtarg();
        if(EQ(a, "(")) {
 
        a = nxtarg();
        if(EQ(a, "(")) {
@@ -713,7 +714,8 @@ register char *s, *p;
                                        return(0);
 
                        case '-':
                                        return(0);
 
                        case '-':
-                               k |= lc <= scc && scc <= (cc=p[1]);
+                               cc = p[1];
+                               k |= lc <= scc && scc <= cc;
                        }
                        if (scc==(lc=cc)) k++;
                }
                        }
                        if (scc==(lc=cc)) k++;
                }
@@ -962,13 +964,11 @@ getname(uid)
        register struct passwd *pw;
        struct passwd *getpwent();
        register int cp;
        register struct passwd *pw;
        struct passwd *getpwent();
        register int cp;
-#ifndef        NO_PW_STAYOPEN
        extern int _pw_stayopen;
 
        _pw_stayopen = 1;
        extern int _pw_stayopen;
 
        _pw_stayopen = 1;
-#endif
 
 
-#if    ((NUID) & ((NUID) - 1) != 0)
+#if    (((NUID) & ((NUID) - 1)) != 0)
        cp = uid % (NUID);
 #else
        cp = uid & ((NUID) - 1);
        cp = uid % (NUID);
 #else
        cp = uid & ((NUID) - 1);