From f7b38b8733dbfc096022368ed33bcc24679a3a2d Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 9 Dec 2014 12:17:22 +0100 Subject: [PATCH] getopt: fix compiler warning Signed-off-by: Karel Zak --- misc-utils/getopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2