From 4e14c144e1d6a9efb5998c001783baf7f9f366ff Mon Sep 17 00:00:00 2001 From: Stefan Farfeleder Date: Sat, 7 Aug 2004 07:05:38 +0000 Subject: [PATCH] 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(-) diff --git a/usr.bin/quota/quota.c b/usr.bin/quota/quota.c index 69963593c71..4decd8b5a65 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) {