scriptreplay/newgrp: use signed int to store return of getopt_long

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
This commit is contained in:
Filipe Brandenburger 2016-01-06 11:00:49 -08:00 committed by Karel Zak
parent 43b4f7ea5f
commit 94757eceb1
2 changed files with 2 additions and 2 deletions

View File

@ -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'},

View File

@ -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' },