parse-options.c: mark file-local function static
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Jan 11, 2010 at 22:28 UTC
41064ebc4920fadb6afafe5f09865d2558921c00
2 files changed
+5
-5
parse-options.c
+5
-2
@@ -3,6 +3,9 @@
3
#include "cache.h"
4
#include "commit.h"
5
6
+static int parse_options_usage(const char * const *usagestr,
7
+ const struct option *opts);
8
+
9
#define OPT_SHORT 1
10
#define OPT_UNSET 2
11
@@ -560,8 +563,8 @@ void usage_msg_opt(const char *msg,
563
usage_with_options(usagestr, options);
564
}
565
563
-int parse_options_usage(const char * const *usagestr,
564
- const struct option *opts)
566
+static int parse_options_usage(const char * const *usagestr,
567
+ const struct option *opts)
568
{
569
return usage_with_options_internal(usagestr, opts, 0);
570
}
parse-options.h
-3
@@ -171,9 +171,6 @@ struct parse_opt_ctx_t {
171
const char *prefix;
172
};
173
174
-extern int parse_options_usage(const char * const *usagestr,
175
- const struct option *opts);
176
-
174
extern void parse_options_start(struct parse_opt_ctx_t *ctx,
175
int argc, const char **argv, const char *prefix,
176
int flags);