summaryrefslogtreecommitdiffstats
path: root/usr.bin/showmount/showmount.c
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2004-07-26 15:04:57 +0000
committerstefanf <stefanf@FreeBSD.org>2004-07-26 15:04:57 +0000
commit4cf0522899584cb012761c4ba10b1f8cbc04d8b9 (patch)
tree88eafd08efcb184f47df78eadd39feafb4453577 /usr.bin/showmount/showmount.c
parenta63ad31e7f8f6b7913f402d253119edd7682c06d (diff)
downloadFreeBSD-src-4cf0522899584cb012761c4ba10b1f8cbc04d8b9.zip
FreeBSD-src-4cf0522899584cb012761c4ba10b1f8cbc04d8b9.tar.gz
Assign the result of getopt() to an int rather than to a char (which is
possibly unsigned).
Diffstat (limited to 'usr.bin/showmount/showmount.c')
-rw-r--r--usr.bin/showmount/showmount.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/showmount/showmount.c b/usr.bin/showmount/showmount.c
index 9dbc1f9..703089b 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;
OpenPOWER on IntegriCloud