getopt return value changed from char to int (https://github.com/clicon/clixon/issues/58)
This commit is contained in:
parent
39a5086218
commit
d09a8c08aa
12 changed files with 17 additions and 14 deletions
|
|
@ -218,7 +218,7 @@ main(int argc, char **argv)
|
|||
int timeout = 10;
|
||||
char start[27] = {0,}; /* strlen = 0 */
|
||||
char stop[27] = {0,};
|
||||
char c;
|
||||
int c;
|
||||
char *argv0 = argv[0];
|
||||
struct timeval now;
|
||||
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ main(int argc,
|
|||
cxobj *xc;
|
||||
cbuf *cb = cbuf_new();
|
||||
int retval = -1;
|
||||
char c;
|
||||
int c;
|
||||
int logdst = CLICON_LOG_STDERR;
|
||||
|
||||
optind = 1;
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ main(int argc, char **argv)
|
|||
cxobj **xv = NULL;
|
||||
cxobj *x0 = NULL;
|
||||
cxobj *x;
|
||||
char c;
|
||||
int c;
|
||||
int len;
|
||||
char *buf = NULL;
|
||||
int ret;
|
||||
|
|
|
|||
|
|
@ -81,8 +81,8 @@ int
|
|||
main(int argc, char **argv)
|
||||
{
|
||||
yang_spec *yspec = NULL;
|
||||
char c;
|
||||
int logdst = CLICON_LOG_STDERR;
|
||||
int c;
|
||||
int logdst = CLICON_LOG_STDERR;
|
||||
|
||||
optind = 1;
|
||||
opterr = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue