get errno from <errno.h>
authorChris Torek <torek@ucbvax.Berkeley.EDU>
Sun, 3 Feb 1991 10:26:35 +0000 (02:26 -0800)
committerChris Torek <torek@ucbvax.Berkeley.EDU>
Sun, 3 Feb 1991 10:26:35 +0000 (02:26 -0800)
SCCS-vsn: usr.bin/logger/logger.c 6.16
SCCS-vsn: usr.bin/make/main.c 5.24

usr/src/usr.bin/logger/logger.c
usr/src/usr.bin/make/main.c

index f5953a9..3de7459 100644 (file)
@@ -12,7 +12,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)logger.c   6.15 (Berkeley) %G%";
+static char sccsid[] = "@(#)logger.c   6.16 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <stdio.h>
 #endif /* not lint */
 
 #include <stdio.h>
index 76b81f0..913f6b5 100644 (file)
@@ -17,7 +17,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)main.c     5.23 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c     5.24 (Berkeley) %G%";
 #endif /* not lint */
 
 /*-
 #endif /* not lint */
 
 /*-
@@ -50,6 +50,7 @@ static char sccsid[] = "@(#)main.c    5.23 (Berkeley) %G%";
 #include <sys/param.h>
 #include <sys/signal.h>
 #include <sys/stat.h>
 #include <sys/param.h>
 #include <sys/signal.h>
 #include <sys/stat.h>
+#include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
 #include <varargs.h>
 #include <fcntl.h>
 #include <stdio.h>
 #include <varargs.h>
@@ -333,8 +334,6 @@ main(argc, argv)
                        }
                }
                if (chdir(path)) {
                        }
                }
                if (chdir(path)) {
-                       extern int errno;
-
                        (void)fprintf(stderr, "make: %s: %s.\n",
                            path, strerror(errno));
                        exit(2);
                        (void)fprintf(stderr, "make: %s: %s.\n",
                            path, strerror(errno));
                        exit(2);
@@ -732,7 +731,6 @@ char *
 emalloc(len)
        u_int len;
 {
 emalloc(len)
        u_int len;
 {
-       extern int errno;
        char *p, *malloc();
 
        if (!(p = malloc(len)))
        char *p, *malloc();
 
        if (!(p = malloc(len)))