]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
getopt: remove function prototypes
authorSami Kerola <kerolasa@iki.fi>
Sat, 6 Dec 2014 16:48:57 +0000 (16:48 +0000)
committerSami Kerola <kerolasa@iki.fi>
Mon, 8 Dec 2014 20:07:00 +0000 (20:07 +0000)
Functions are in right order so they do not need prototypes, with effect
of not needing to keep function argument changes in sync in two locations.

CC: Frodo Looijaard <frodo@frodo.looijaard.name>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
misc-utils/getopt.c

index d7918b1655dbff14fbf5aab46125235843fc92ea..383bbd12cd58628216b906fb6059636b99964203 100644 (file)
@@ -87,16 +87,6 @@ static int quote = 1;                /* 1 is do quote. */
 int (*getopt_long_fp) (int argc, char *const *argv, const char *optstr,
                       const struct option * longopts, int *longindex);
 
-/* Function prototypes */
-static const char *normalize(const char *arg);
-static int generate_output(char *argv[], int argc, const char *optstr,
-                          const struct option *longopts);
-static void parse_error(const char *message);
-static void add_long_options(char *options);
-static void add_longopt(const char *name, int has_arg);
-static void print_help(void);
-static void set_shell(const char *new_shell);
-
 /*
  * This function 'normalizes' a single argument: it puts single quotes
  * around it and escapes other special characters. If quote is false, it