diff options
author | delphij <delphij@FreeBSD.org> | 2005-01-10 10:44:56 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2005-01-10 10:44:56 +0000 |
commit | 88e0265d82f556987c9288543f072cdf3193dbc1 (patch) | |
tree | dbc2b3f52db47ddd0ea24e61f95dcb8cf0b9ddea /sbin/savecore | |
parent | 5556612cc1981ebd07ac334e60c4732d21b9b38b (diff) | |
download | FreeBSD-src-88e0265d82f556987c9288543f072cdf3193dbc1.zip FreeBSD-src-88e0265d82f556987c9288543f072cdf3193dbc1.tar.gz |
Initialize "he" in DoFile, so savecore(8) is WARNS=6 clean.
Bump WARNS accordingly.
Diffstat (limited to 'sbin/savecore')
-rw-r--r-- | sbin/savecore/Makefile | 2 | ||||
-rw-r--r-- | sbin/savecore/savecore.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sbin/savecore/Makefile b/sbin/savecore/Makefile index 6d7b5e0..525f281 100644 --- a/sbin/savecore/Makefile +++ b/sbin/savecore/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PROG= savecore -WARNS?= 4 +WARNS?= 6 DPADD= ${LIBZ} LDADD= -lz MAN= savecore.8 diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c index 8d1e95a..5bb76e9 100644 --- a/sbin/savecore/savecore.c +++ b/sbin/savecore/savecore.c @@ -213,7 +213,7 @@ DoFile(char *savedir, const char *device) off_t mediasize, dumpsize, firsthd, lasthd, dmpcnt; FILE *info, *fp; int fd, fdinfo, error, wl; - int nr, nw, hs, he; + int nr, nw, hs, he = 0; int bounds; u_int sectorsize; mode_t oumask; |