A space between switch and open-paren. Don't explicitly cast the value
returned by getopt(3) to 'char' in a switch.
This commit is contained in:
parent
50d27889f5
commit
4a675d0d9d
@ -60,7 +60,7 @@ main(int argc, char *argv[])
|
||||
|
||||
sflag = 0;
|
||||
while ((ch = getopt(argc, argv, "s")) != -1)
|
||||
switch((char)ch) {
|
||||
switch (ch) {
|
||||
case 's':
|
||||
sflag = 1;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user