diff options
author | markm <markm@FreeBSD.org> | 2002-02-22 20:57:53 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-02-22 20:57:53 +0000 |
commit | 1fb3e883431e322f6864fffe70b19e7590c80dca (patch) | |
tree | fff639692545478728cc93a9e0a2b92146235d01 /bin | |
parent | 863c4cc748b4dd2ce753f93a8889fd3f1908e778 (diff) | |
download | FreeBSD-src-1fb3e883431e322f6864fffe70b19e7590c80dca.zip FreeBSD-src-1fb3e883431e322f6864fffe70b19e7590c80dca.tar.gz |
Warnings fixes inspired by lint, a commercial lint and WARNS=4.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/df/df.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bin/df/df.c b/bin/df/df.c index 9ed8442..e776f8b 100644 --- a/bin/df/df.c +++ b/bin/df/df.c @@ -51,15 +51,18 @@ static const char rcsid[] = #endif #endif /* not lint */ +#include <sys/cdefs.h> #include <sys/param.h> #include <sys/stat.h> #include <sys/mount.h> #include <sys/sysctl.h> #include <ufs/ufs/ufsmount.h> +#include <ufs/ffs/fs.h> #include <err.h> #include <errno.h> #include <fcntl.h> +#include <fstab.h> #include <math.h> #include <stdio.h> #include <stdlib.h> @@ -94,7 +97,7 @@ unsigned long long *valp; typedef enum { NONE, KILO, MEGA, GIGA, TERA, PETA, UNIT_MAX } unit_t; -int unitp [] = { NONE, KILO, MEGA, GIGA, TERA, PETA }; +unit_t unitp [] = { NONE, KILO, MEGA, GIGA, TERA, PETA }; int bread(off_t, void *, int); int checkvfsname(const char *, char **); @@ -420,10 +423,6 @@ prtstat(struct statfs *sfsp, int maxwidth) * This code constitutes the pre-system call Berkeley df code for extracting * information from filesystem superblocks. */ -#include <ufs/ufs/dinode.h> -#include <ufs/ffs/fs.h> -#include <errno.h> -#include <fstab.h> union { struct fs iu_fs; |