From: Sami Kerola Date: Sat, 6 Dec 2014 16:48:57 +0000 (+0000) Subject: getopt: remove function prototypes X-Git-Tag: v2.26-rc1~140^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f69b38c5e170369fe78b48a1ef335c7c83ce3ce;p=thirdparty%2Futil-linux.git getopt: remove function prototypes 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 Signed-off-by: Sami Kerola --- diff --git a/misc-utils/getopt.c b/misc-utils/getopt.c index d7918b1655..383bbd12cd 100644 --- a/misc-utils/getopt.c +++ b/misc-utils/getopt.c @@ -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