]> git.sesse.net Git - vlc/commitdiff
getopt: use ANSI style prototypes
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 29 Mar 2010 19:50:02 +0000 (22:50 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 29 Mar 2010 19:50:02 +0000 (22:50 +0300)
src/config/getopt.c

index 43051ff8c5e96d002f5d3e8693fc58c29327fdfc..e496d590bda765250ffb1c822427d1d041f19cf2 100644 (file)
@@ -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;