summaryrefslogtreecommitdiffstats
path: root/misc-utils/getopt.c
diff options
context:
space:
mode:
authorKarel Zak2014-12-09 12:17:22 +0100
committerKarel Zak2014-12-09 12:17:22 +0100
commitf7b38b8733dbfc096022368ed33bcc24679a3a2d (patch)
treed8aaf121887de581d11dd5e22738c1d536677a43 /misc-utils/getopt.c
parentMerge branch '2014wk48' of git://github.com/kerolasa/lelux-utiliteetit (diff)
downloadkernel-qcow2-util-linux-f7b38b8733dbfc096022368ed33bcc24679a3a2d.tar.gz
kernel-qcow2-util-linux-f7b38b8733dbfc096022368ed33bcc24679a3a2d.tar.xz
kernel-qcow2-util-linux-f7b38b8733dbfc096022368ed33bcc24679a3a2d.zip
getopt: fix compiler warning
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/getopt.c')
-rw-r--r--misc-utils/getopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/getopt.c b/misc-utils/getopt.c
index 7f2679285..4802d95ba 100644
--- a/misc-utils/getopt.c
+++ b/misc-utils/getopt.c
@@ -287,7 +287,7 @@ static void add_long_options(struct getopt_control *ctl, char *options)
}
tokptr = strtok(NULL, ", \t\n");
}
- add_longopt(&ctl, NULL, 0); /* ensure long_options[] is not full */
+ add_longopt(ctl, NULL, 0); /* ensure long_options[] is not full */
ctl->long_options[ctl->long_options_nr].name = NULL;
ctl->long_options[ctl->long_options_nr].has_arg = 0;
ctl->long_options[ctl->long_options_nr].flag = NULL;