From bca8ede36193523f5e509e218d1976dc9b8386e2 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 7 Jul 2001 18:26:23 +0000 Subject: major -Wall cleanup, almost complete --- sbin/newfs_msdos/newfs_msdos.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sbin/newfs_msdos/newfs_msdos.c') diff --git a/sbin/newfs_msdos/newfs_msdos.c b/sbin/newfs_msdos/newfs_msdos.c index e6d86e48853..e2c8f4066bd 100644 --- a/sbin/newfs_msdos/newfs_msdos.c +++ b/sbin/newfs_msdos/newfs_msdos.c @@ -737,11 +737,12 @@ getdiskinfo(int fd, const char *fname, const char *dtype, int oflag, #ifdef __FreeBSD__ struct diskslices ds; int slice = -1; + char *s; + int fd1, e; #endif struct disklabel dl, *lp; const char *s1, *s2; - char *s; - int part, fd1, i, e; + int part, i; part = -1; s1 = fname; @@ -929,7 +930,7 @@ argtou(const char *arg, u_int lo, u_int hi, const char *msg) static int oklabel(const char *src) { - int c, i; + int c = 0, i; for (i = 0; i <= 11; i++) { c = (u_char)*src++; -- cgit v1.2.3