Assign the result of getopt() to an int rather than to a char.

This commit is contained in:
stefanf 2004-08-07 07:05:38 +00:00
parent 77fb4fcf22
commit caf7ef54ac

View File

@ -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) {