summaryrefslogtreecommitdiffstats
path: root/login-utils/newgrp.c
diff options
context:
space:
mode:
authorFilipe Brandenburger2016-01-06 20:00:49 +0100
committerKarel Zak2016-01-07 12:47:41 +0100
commit94757eceb1da6fe668861dce2e793e83a877967d (patch)
treeae8e9ca7e4388aa2e7c85019c27fd6a3154ba54e /login-utils/newgrp.c
parentlib/tty: Pass default width to get_terminal_width() (diff)
downloadkernel-qcow2-util-linux-94757eceb1da6fe668861dce2e793e83a877967d.tar.gz
kernel-qcow2-util-linux-94757eceb1da6fe668861dce2e793e83a877967d.tar.xz
kernel-qcow2-util-linux-94757eceb1da6fe668861dce2e793e83a877967d.zip
scriptreplay/newgrp: use signed int to store return of getopt_long
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
Diffstat (limited to 'login-utils/newgrp.c')
-rw-r--r--login-utils/newgrp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/login-utils/newgrp.c b/login-utils/newgrp.c
index e674a4feb..141b41bf4 100644
--- a/login-utils/newgrp.c
+++ b/login-utils/newgrp.c
@@ -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'},