Use int to receive the return value of getopt function.
getopt returns int and not char, so assigning the value to char is not ideal, especially on platforms with unsigned chars.
This commit is contained in:
parent
8b609ea571
commit
e64aaeac2a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=316627
@ -203,8 +203,8 @@ usage(const char* prog)
|
|||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
char c, *prog;
|
char *prog;
|
||||||
int sleep_type;
|
int c, sleep_type;
|
||||||
|
|
||||||
prog = argv[0];
|
prog = argv[0];
|
||||||
if (argc < 2)
|
if (argc < 2)
|
||||||
|
Loading…
Reference in New Issue
Block a user