summaryrefslogtreecommitdiffstats
path: root/sbin/dump
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/dump
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/dump')
-rw-r--r--sbin/dump/dumprmt.c2
-rw-r--r--sbin/dump/traverse.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dump/dumprmt.c b/sbin/dump/dumprmt.c
index b6563e5..ffc009d 100644
--- a/sbin/dump/dumprmt.c
+++ b/sbin/dump/dumprmt.c
@@ -63,6 +63,7 @@ static const char rcsid[] =
#include <pwd.h>
#include <stdio.h>
#ifdef __STDC__
+#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -357,7 +358,6 @@ rmtreply(cmd)
{
register char *cp;
char code[30], emsg[BUFSIZ];
- extern int errno;
rmtgets(code, sizeof (code));
if (*code == 'E' || *code == 'F') {
diff --git a/sbin/dump/traverse.c b/sbin/dump/traverse.c
index 18eec04..f52413c 100644
--- a/sbin/dump/traverse.c
+++ b/sbin/dump/traverse.c
@@ -58,6 +58,7 @@ static const char rcsid[] =
#include <ctype.h>
#include <stdio.h>
#ifdef __STDC__
+#include <errno.h>
#include <string.h>
#include <unistd.h>
#endif
@@ -553,7 +554,6 @@ bread(blkno, buf, size)
int size;
{
int cnt, i;
- extern int errno;
loop:
if (lseek(diskfd, ((off_t)blkno << dev_bshift), 0) !=
OpenPOWER on IntegriCloud