mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Assign the result of getopt() to an int rather than to a char.
This commit is contained in:
parent
1e28302160
commit
4e14c144e1
1 changed files with 1 additions and 2 deletions
|
|
@ -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 a new issue