From caf7ef54ac3f0da079dbdebb1330adf05428d3de Mon Sep 17 00:00:00 2001 From: stefanf Date: Sat, 7 Aug 2004 07:05:38 +0000 Subject: Assign the result of getopt() to an int rather than to a char. --- usr.bin/quota/quota.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'usr.bin/quota') diff --git a/usr.bin/quota/quota.c b/usr.bin/quota/quota.c index 6996359..4decd8b 100644 --- a/usr.bin/quota/quota.c +++ b/usr.bin/quota/quota.c @@ -112,8 +112,7 @@ main(int argc, char *argv[]) { int ngroups; gid_t mygid, gidset[NGROUPS]; - int i, gflag = 0, uflag = 0; - char ch; + int i, ch, gflag = 0, uflag = 0; while ((ch = getopt(argc, argv, "glquv")) != -1) { switch(ch) { -- cgit v1.1