util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sami Kerola <kerolasa@iki.fi>
To: util-linux@vger.kernel.org
Cc: Sami Kerola <kerolasa@iki.fi>,
	Frodo Looijaard <frodo@frodo.looijaard.name>
Subject: [PATCH 04/11] getopt: remove function prototypes
Date: Sun,  7 Dec 2014 10:13:48 +0000	[thread overview]
Message-ID: <1417947235-24229-4-git-send-email-kerolasa@iki.fi> (raw)
In-Reply-To: <1417947235-24229-1-git-send-email-kerolasa@iki.fi>

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 | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/misc-utils/getopt.c b/misc-utils/getopt.c
index d7918b1..383bbd1 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
-- 
2.1.3


  parent reply	other threads:[~2014-12-07 10:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-07 10:13 [PATCH 01/11] tests: copy test-suite from Frodo Looijaard's getopt Sami Kerola
2014-12-07 10:13 ` [PATCH 02/11] tests: add more getopt tests Sami Kerola
2014-12-07 10:13 ` [PATCH 03/11] getopt: make nonoptions optstring comment correct Sami Kerola
2014-12-07 10:13 ` Sami Kerola [this message]
2014-12-07 10:13 ` [PATCH 05/11] getopt: add struct getopt_control and remove global variables Sami Kerola
2014-12-07 10:13 ` [PATCH 06/11] getopt: use xstrdup rather than malloc + strcpy Sami Kerola
2014-12-07 10:13 ` [PATCH 07/11] getopt: make normalize() print strings Sami Kerola
2014-12-07 10:13 ` [PATCH 08/11] getopt: remove unnecessary code Sami Kerola
2014-12-07 10:13 ` [PATCH 09/11] getopt: prefer switch-case rather than long if statement Sami Kerola
2014-12-07 10:13 ` [PATCH 10/11] getopt: change --shell argument parsing function Sami Kerola
2014-12-07 10:13 ` [PATCH 11/11] getopt: avoid re-terminating long_option list at every update Sami Kerola
2014-12-08 11:37   ` Sami Kerola
2014-12-08 20:05     ` Sami Kerola
2014-12-09 11:09 ` [PATCH 01/11] tests: copy test-suite from Frodo Looijaard's getopt Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1417947235-24229-4-git-send-email-kerolasa@iki.fi \
    --to=kerolasa@iki.fi \
    --cc=frodo@frodo.looijaard.name \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).