From: Karel Zak Date: Tue, 9 Dec 2014 11:17:22 +0000 (+0100) Subject: getopt: fix compiler warning X-Git-Tag: v2.26-rc1~139 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7b38b8733dbfc096022368ed33bcc24679a3a2d;p=thirdparty%2Futil-linux.git getopt: fix compiler warning Signed-off-by: Karel Zak --- diff --git a/misc-utils/getopt.c b/misc-utils/getopt.c index 7f26792858..4802d95ba0 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;