must change name of `dirfd' as it has become a macro
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Fri, 13 Feb 1987 03:43:46 +0000 (19:43 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Fri, 13 Feb 1987 03:43:46 +0000 (19:43 -0800)
SCCS-vsn: usr.bin/sccs/sccs.c 5.2

usr/src/usr.bin/sccs/sccs.c

index 8f3a613..f1d2707 100644 (file)
@@ -11,7 +11,7 @@ char copyright[] =
 #endif not lint
 
 #ifndef lint
 #endif not lint
 
 #ifndef lint
-static char sccsid[] = "@(#)sccs.c     5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)sccs.c     5.2 (Berkeley) %G%";
 #endif not lint
 
 # include <stdio.h>
 #endif not lint
 
 # include <stdio.h>
@@ -898,7 +898,7 @@ clean(mode, argv)
        struct direct *dir;
        char buf[FBUFSIZ];
        char *bufend;
        struct direct *dir;
        char buf[FBUFSIZ];
        char *bufend;
-       register DIR *dirfd;
+       register DIR *dirp;
        register char *basefile;
        bool gotedit;
        bool gotpfent;
        register char *basefile;
        bool gotedit;
        bool gotpfent;
@@ -962,8 +962,8 @@ clean(mode, argv)
        gstrcat(buf, SccsPath, sizeof(buf));
        bufend = &buf[strlen(buf)];
 
        gstrcat(buf, SccsPath, sizeof(buf));
        bufend = &buf[strlen(buf)];
 
-       dirfd = opendir(buf);
-       if (dirfd == NULL)
+       dirp = opendir(buf);
+       if (dirp == NULL)
        {
                usrerr("cannot open %s", buf);
                return (EX_NOINPUT);
        {
                usrerr("cannot open %s", buf);
                return (EX_NOINPUT);
@@ -976,7 +976,7 @@ clean(mode, argv)
        */
 
        gotedit = FALSE;
        */
 
        gotedit = FALSE;
-       while (dir = readdir(dirfd)) {
+       while (dir = readdir(dirp)) {
                if (strncmp(dir->d_name, "s.", 2) != 0)
                        continue;
                
                if (strncmp(dir->d_name, "s.", 2) != 0)
                        continue;
                
@@ -1025,7 +1025,7 @@ clean(mode, argv)
        }
 
        /* cleanup & report results */
        }
 
        /* cleanup & report results */
-       closedir(dirfd);
+       closedir(dirp);
        if (!gotedit && mode == INFOC)
        {
                printf("Nothing being edited");
        if (!gotedit && mode == INFOC)
        {
                printf("Nothing being edited");