Commit d1de0040 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

getopt: use ANSI style prototypes

parent 4892f03c
...@@ -83,11 +83,7 @@ static int last_nonopt; ...@@ -83,11 +83,7 @@ static int last_nonopt;
`first_nonopt' and `last_nonopt' are relocated so that they describe `first_nonopt' and `last_nonopt' are relocated so that they describe
the new indices of the non-options in ARGV after they are moved. */ the new indices of the non-options in ARGV after they are moved. */
static void exchange(char **); static void exchange(char **argv)
static void
exchange(argv)
char **argv;
{ {
int bottom = first_nonopt; int bottom = first_nonopt;
int middle = last_nonopt; int middle = last_nonopt;
...@@ -192,13 +188,9 @@ static void ...@@ -192,13 +188,9 @@ static void
It is only valid when a long-named option has been found by the most It is only valid when a long-named option has been found by the most
recent call. */ recent call. */
int int vlc_getopt_long(int argc, char *const *argv,
vlc_getopt_long(argc, argv, optstring, longopts, longind) const char *optstring,
int argc; const struct vlc_option *restrict longopts, int *longind)
char *const *argv;
const char *optstring;
const struct vlc_option *restrict longopts;
int *longind;
{ {
vlc_optarg = NULL; vlc_optarg = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment