mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-23 01:14:52 +01:00
Assign the result of getopt() to an int rather than to a char.
This commit is contained in:
parent
1e28302160
commit
4e14c144e1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133258
@ -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