diff options
author | imp <imp@FreeBSD.org> | 2000-04-14 06:15:01 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2000-04-14 06:15:01 +0000 |
commit | 7fec3d2787608459e561d33aa2c5f4370c7eb11f (patch) | |
tree | dcaa461be797396514a3cad83c83a102b6255162 /sbin/disklabel/disklabel.c | |
parent | 212803777e16b9fe9d5c92e839ece868ac93b66b (diff) | |
download | FreeBSD-src-7fec3d2787608459e561d33aa2c5f4370c7eb11f.zip FreeBSD-src-7fec3d2787608459e561d33aa2c5f4370c7eb11f.tar.gz |
Add include of errno.h where needed, remove extern int errno where not.
These commits were inspired by a similar commit to netbsd.
Diffstat (limited to 'sbin/disklabel/disklabel.c')
-rw-r--r-- | sbin/disklabel/disklabel.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c index 13d139a..8715538 100644 --- a/sbin/disklabel/disklabel.c +++ b/sbin/disklabel/disklabel.c @@ -50,7 +50,6 @@ static const char rcsid[] = #endif /* not lint */ #include <sys/param.h> -#include <sys/errno.h> #include <sys/file.h> #include <sys/stat.h> #include <sys/wait.h> @@ -65,6 +64,7 @@ static const char rcsid[] = #include <stdarg.h> #include <ctype.h> #include <err.h> +#include <errno.h> #include "pathnames.h" /* @@ -866,8 +866,6 @@ editit() omask = sigblock(sigmask(SIGINT)|sigmask(SIGQUIT)|sigmask(SIGHUP)); while ((pid = fork()) < 0) { - extern int errno; - if (errno == EPROCLIM) { warnx("you have too many processes"); return(0); |