]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
getopt: fix compiler warning
authorKarel Zak <kzak@redhat.com>
Tue, 9 Dec 2014 11:17:22 +0000 (12:17 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 9 Dec 2014 11:17:22 +0000 (12:17 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/getopt.c

index 7f267928582e1001519abda03b777c8cbf1a74a9..4802d95ba0db13da6ba3d27b8bc12d0d293b7dc9 100644 (file)
@@ -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;