From: RĂ©mi Denis-Courmont Date: Mon, 29 Mar 2010 19:50:02 +0000 (+0300) Subject: getopt: use ANSI style prototypes X-Git-Tag: 1.1.0-pre1~249 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=d1de0040b7fdf853c38d28e8a7d5a78af72e12cf;p=vlc getopt: use ANSI style prototypes --- diff --git a/src/config/getopt.c b/src/config/getopt.c index 43051ff8c5..e496d590bd 100644 --- a/src/config/getopt.c +++ b/src/config/getopt.c @@ -83,11 +83,7 @@ static int last_nonopt; `first_nonopt' and `last_nonopt' are relocated so that they describe the new indices of the non-options in ARGV after they are moved. */ -static void exchange(char **); - -static void - exchange(argv) - char **argv; +static void exchange(char **argv) { int bottom = first_nonopt; int middle = last_nonopt; @@ -192,13 +188,9 @@ static void It is only valid when a long-named option has been found by the most recent call. */ -int - vlc_getopt_long(argc, argv, optstring, longopts, longind) - int argc; - char *const *argv; - const char *optstring; - const struct vlc_option *restrict longopts; - int *longind; +int vlc_getopt_long(int argc, char *const *argv, + const char *optstring, + const struct vlc_option *restrict longopts, int *longind) { vlc_optarg = NULL;