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:
Alexander Kabaev 2017-04-07 22:58:31 +00:00
parent 8b609ea571
commit e64aaeac2a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=316627

View File

@ -203,8 +203,8 @@ usage(const char* prog)
int
main(int argc, char *argv[])
{
char c, *prog;
int sleep_type;
char *prog;
int c, sleep_type;
prog = argv[0];
if (argc < 2)