diff options
author | matteo <matteo@FreeBSD.org> | 2007-03-23 19:57:27 +0000 |
---|---|---|
committer | matteo <matteo@FreeBSD.org> | 2007-03-23 19:57:27 +0000 |
commit | 2d2929c912249f5cded546ea402051479a4a9b1a (patch) | |
tree | abaab4f7363e85eeba2052e35901fa20c4fb1c2d /usr.sbin | |
parent | 04c6de816f9163b8422e4d5eef06a23d9a6846c6 (diff) | |
download | FreeBSD-src-2d2929c912249f5cded546ea402051479a4a9b1a.zip FreeBSD-src-2d2929c912249f5cded546ea402051479a4a9b1a.tar.gz |
Make sysinstall's code WARNS=2 clean .
MFC after: 1 week
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/sysinstall/Makefile | 1 | ||||
-rw-r--r-- | usr.sbin/sysinstall/biosmptable.c | 5 | ||||
-rw-r--r-- | usr.sbin/sysinstall/dist.c | 1 |
3 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/Makefile b/usr.sbin/sysinstall/Makefile index d9aeb5c..6d16726 100644 --- a/usr.sbin/sysinstall/Makefile +++ b/usr.sbin/sysinstall/Makefile @@ -6,6 +6,7 @@ _wizard= wizard.c PROG= sysinstall MAN= sysinstall.8 +WARNS?= 2 SRCS= anonFTP.c cdrom.c command.c config.c devices.c dhcp.c \ disks.c dispatch.c dist.c dmenu.c doc.c dos.c floppy.c \ ftp.c globals.c http.c index.c install.c installUpgrade.c keymap.c \ diff --git a/usr.sbin/sysinstall/biosmptable.c b/usr.sbin/sysinstall/biosmptable.c index d6ee944..5a507bd 100644 --- a/usr.sbin/sysinstall/biosmptable.c +++ b/usr.sbin/sysinstall/biosmptable.c @@ -36,6 +36,7 @@ __FBSDID("$FreeBSD$"); #include <sys/types.h> #include <machine/mptable.h> +#include <err.h> #include <fcntl.h> #include <inttypes.h> #include <paths.h> @@ -151,7 +152,7 @@ static int memread(off_t addr, void* entry, size_t size) { if ((size_t)pread(pfd, entry, size, addr) != size) { - warn("pread (%lu @ 0x%lx)", size, addr); + warn("pread (%zu @ 0x%llx)", size, addr); return 0; } return 1; @@ -232,7 +233,7 @@ biosmptable_check_mpcth(off_t addr) /* mpcth must be in the first 1MB */ if ((u_int32_t)addr >= 1024 * 1024) { - msgDebug("%s: bad mpcth address (0x%lx)\n", __func__, addr); + msgDebug("%s: bad mpcth address (0x%llx)\n", __func__, addr); return (NULL); } diff --git a/usr.sbin/sysinstall/dist.c b/usr.sbin/sysinstall/dist.c index fab3b9f..094ede2 100644 --- a/usr.sbin/sysinstall/dist.c +++ b/usr.sbin/sysinstall/dist.c @@ -39,6 +39,7 @@ #include <sys/mount.h> #include <sys/time.h> #include <sys/uio.h> +#include <ctype.h> #include <signal.h> #include <libutil.h> |