summaryrefslogtreecommitdiffstats
path: root/sbin/bsdlabel
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2000-04-14 06:15:01 +0000
committerimp <imp@FreeBSD.org>2000-04-14 06:15:01 +0000
commit7fec3d2787608459e561d33aa2c5f4370c7eb11f (patch)
treedcaa461be797396514a3cad83c83a102b6255162 /sbin/bsdlabel
parent212803777e16b9fe9d5c92e839ece868ac93b66b (diff)
downloadFreeBSD-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/bsdlabel')
-rw-r--r--sbin/bsdlabel/bsdlabel.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sbin/bsdlabel/bsdlabel.c b/sbin/bsdlabel/bsdlabel.c
index 13d139a..8715538 100644
--- a/sbin/bsdlabel/bsdlabel.c
+++ b/sbin/bsdlabel/bsdlabel.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);
OpenPOWER on IntegriCloud