Skip to content

Commit

Permalink
parse-options.c: mark file-local function static
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Jan 12, 2010
1 parent 61b97df commit 41064eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 5 additions & 2 deletions parse-options.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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);
}
Expand Down
3 changes: 0 additions & 3 deletions parse-options.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 41064eb

Please sign in to comment.