]> Pileus Git - ~andy/git/commitdiff
parse-options.c: mark file-local function static
authorJunio C Hamano <gitster@pobox.com>
Tue, 12 Jan 2010 06:28:45 +0000 (22:28 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Jan 2010 09:06:08 +0000 (01:06 -0800)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
parse-options.c
parse-options.h

index f5594114ede8a50090c8b97987b52a660235fa56..7bbed5f3e2f54cdcaf42c93321cdc8089008eaf5 100644 (file)
@@ -3,6 +3,9 @@
 #include "cache.h"
 #include "commit.h"
 
+static int parse_options_usage(const char * const *usagestr,
+                              const struct option *opts);
+
 #define OPT_SHORT 1
 #define OPT_UNSET 2
 
@@ -560,8 +563,8 @@ void usage_msg_opt(const char *msg,
        usage_with_options(usagestr, options);
 }
 
-int parse_options_usage(const char * const *usagestr,
-                       const struct option *opts)
+static int parse_options_usage(const char * const *usagestr,
+                              const struct option *opts)
 {
        return usage_with_options_internal(usagestr, opts, 0);
 }
index f295a2cf858f4dbebc62e956878544ffdb7fbe58..72fa36011bf9290075d52ec071bdd63a8b1a6455 100644 (file)
@@ -171,9 +171,6 @@ struct parse_opt_ctx_t {
        const char *prefix;
 };
 
-extern int parse_options_usage(const char * const *usagestr,
-                              const struct option *opts);
-
 extern void parse_options_start(struct parse_opt_ctx_t *ctx,
                                int argc, const char **argv, const char *prefix,
                                int flags);