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

This commit is contained in:
Stefan Farfeleder 2004-08-07 07:05:38 +00:00
parent 1e28302160
commit 4e14c144e1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133258

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