diff --git a/sbin/ffsinfo/ffsinfo.c b/sbin/ffsinfo/ffsinfo.c index c5595acd6968..3e3a8c246557 100644 --- a/sbin/ffsinfo/ffsinfo.c +++ b/sbin/ffsinfo/ffsinfo.c @@ -123,7 +123,7 @@ main(int argc, char **argv) { DBG_FUNC("main") char *device, *special; - char ch; + int ch; size_t len; struct stat st; struct csum *dbg_csp; diff --git a/usr.bin/showmount/showmount.c b/usr.bin/showmount/showmount.c index 9dbc1f9b6c1a..703089b1860e 100644 --- a/usr.bin/showmount/showmount.c +++ b/usr.bin/showmount/showmount.c @@ -117,12 +117,11 @@ main(argc, argv) register struct exportslist *exp; register struct grouplist *grp; register int rpcs = 0, mntvers = 1; - char ch; const char *host; - int estat; + int ch, estat; while ((ch = getopt(argc, argv, "ade3")) != -1) - switch((char)ch) { + switch (ch) { case 'a': if (type == 0) { type = ALL;