scriptreplay/newgrp: use signed int to store return of getopt_long
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
This commit is contained in:
parent
43b4f7ea5f
commit
94757eceb1
|
@ -180,7 +180,7 @@ int main(int argc, char *argv[])
|
|||
struct passwd *pw_entry;
|
||||
struct group *gr_entry;
|
||||
char *shell;
|
||||
char ch;
|
||||
int ch;
|
||||
static const struct option longopts[] = {
|
||||
{"version", no_argument, NULL, 'V'},
|
||||
{"help", no_argument, NULL, 'h'},
|
||||
|
|
|
@ -138,7 +138,7 @@ main(int argc, char *argv[])
|
|||
double divi = 1, maxdelay = 0;
|
||||
int c, diviopt = FALSE, maxdelayopt = FALSE, idx;
|
||||
unsigned long line;
|
||||
char ch;
|
||||
int ch;
|
||||
|
||||
static const struct option longopts[] = {
|
||||
{ "timing", required_argument, 0, 't' },
|
||||
|
|
Loading…
Reference in New Issue