don't need to declare errno twice, use sys/errno
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 16 Nov 1990 04:23:06 +0000 (20:23 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 16 Nov 1990 04:23:06 +0000 (20:23 -0800)
SCCS-vsn: usr.bin/find/ls.c 5.5

usr/src/usr.bin/find/ls.c

index 834a31c..73d43e8 100644 (file)
@@ -6,26 +6,24 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)ls.c       5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)ls.c       5.5 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/param.h>
 #include <sys/stat.h>
 #endif /* not lint */
 
 #include <sys/param.h>
 #include <sys/stat.h>
+#include <sys/errno.h>
 #include <tzfile.h>
 #include <utmp.h>
 #include <stdio.h>
 
 /* Derived from the print routines in the ls(1) source code. */
 
 #include <tzfile.h>
 #include <utmp.h>
 #include <stdio.h>
 
 /* Derived from the print routines in the ls(1) source code. */
 
-extern int errno;
-
 void
 printlong(name, accpath, sb)
        char *name;                     /* filename to print */
        char *accpath;                  /* current valid path to filename */
        struct stat *sb;                /* stat buffer */
 {
 void
 printlong(name, accpath, sb)
        char *name;                     /* filename to print */
        char *accpath;                  /* current valid path to filename */
        struct stat *sb;                /* stat buffer */
 {
-       extern int errno;
        char modep[15], *user_from_uid(), *group_from_gid(), *strerror();
 
        (void)printf("%6lu %4ld ", sb->st_ino, sb->st_blocks);
        char modep[15], *user_from_uid(), *group_from_gid(), *strerror();
 
        (void)printf("%6lu %4ld ", sb->st_ino, sb->st_blocks);