Assign the result of getopt() to an int rather than to a char.
This commit is contained in:
parent
77fb4fcf22
commit
caf7ef54ac
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user