diff options
author | Sami Kerola | 2014-12-06 17:48:57 +0100 |
---|---|---|
committer | Sami Kerola | 2014-12-08 21:07:00 +0100 |
commit | 5f69b38c5e170369fe78b48a1ef335c7c83ce3ce (patch) | |
tree | 742fdfa0c13942a771d16fe5988343568a41c0cc /misc-utils/getopt.c | |
parent | getopt: make nonoptions optstring comment correct (diff) | |
download | kernel-qcow2-util-linux-5f69b38c5e170369fe78b48a1ef335c7c83ce3ce.tar.gz kernel-qcow2-util-linux-5f69b38c5e170369fe78b48a1ef335c7c83ce3ce.tar.xz kernel-qcow2-util-linux-5f69b38c5e170369fe78b48a1ef335c7c83ce3ce.zip |
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 <frodo@frodo.looijaard.name>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'misc-utils/getopt.c')
-rw-r--r-- | misc-utils/getopt.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/misc-utils/getopt.c b/misc-utils/getopt.c index d7918b165..383bbd12c 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 |