[vlc-commits] commit: getopt: use ANSI style prototypes ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Mon Mar 29 21:50:15 CEST 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Mar 29 22:50:02 2010 +0300| [d1de0040b7fdf853c38d28e8a7d5a78af72e12cf] | committer: Rémi Denis-Courmont 

getopt: use ANSI style prototypes

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d1de0040b7fdf853c38d28e8a7d5a78af72e12cf
---

 src/config/getopt.c |   16 ++++------------
 1 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/src/config/getopt.c b/src/config/getopt.c
index 43051ff..e496d59 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;
 



More information about the vlc-commits mailing list