From d1de0040b7fdf853c38d28e8a7d5a78af72e12cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Mon, 29 Mar 2010 22:50:02 +0300 Subject: [PATCH] getopt: use ANSI style prototypes --- src/config/getopt.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) 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; -- 2.39.5