Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 408cf34c authored by Josh Poimboeuf's avatar Josh Poimboeuf Committed by Arnaldo Carvalho de Melo
Browse files

perf tools: Convert parse-options.c internal functions to static



Signed-off-by: default avatarJosh Poimboeuf <jpoimboe@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/c027b5f47ec1055077f5650edb1c7ad37c191e6c.1449965119.git.jpoimboe@redhat.com


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 5feaac24
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -360,7 +360,7 @@ static void check_typos(const char *arg, const struct option *options)
	}
}

void parse_options_start(struct parse_opt_ctx_t *ctx,
static void parse_options_start(struct parse_opt_ctx_t *ctx,
				int argc, const char **argv, int flags)
{
	memset(ctx, 0, sizeof(*ctx));
@@ -378,7 +378,7 @@ static int usage_with_options_internal(const char * const *,
				       const struct option *, int,
				       struct parse_opt_ctx_t *);

int parse_options_step(struct parse_opt_ctx_t *ctx,
static int parse_options_step(struct parse_opt_ctx_t *ctx,
			      const struct option *options,
			      const char * const usagestr[])
{
@@ -489,7 +489,7 @@ int parse_options_step(struct parse_opt_ctx_t *ctx,
	return PARSE_OPT_HELP;
}

int parse_options_end(struct parse_opt_ctx_t *ctx)
static int parse_options_end(struct parse_opt_ctx_t *ctx)
{
	memmove(ctx->out + ctx->cpidx, ctx->argv, ctx->argc * sizeof(*ctx->out));
	ctx->out[ctx->cpidx + ctx->argc] = NULL;
@@ -717,7 +717,7 @@ static bool option__in_argv(const struct option *opt, const struct parse_opt_ctx
	return false;
}

int usage_with_options_internal(const char * const *usagestr,
static int usage_with_options_internal(const char * const *usagestr,
				       const struct option *opts, int full,
				       struct parse_opt_ctx_t *ctx)
{
+0 −9
Original line number Diff line number Diff line
@@ -195,15 +195,6 @@ extern int parse_options_usage(const char * const *usagestr,
			       const char *optstr,
			       bool short_opt);

extern void parse_options_start(struct parse_opt_ctx_t *ctx,
				int argc, const char **argv, int flags);

extern int parse_options_step(struct parse_opt_ctx_t *ctx,
			      const struct option *options,
			      const char * const usagestr[]);

extern int parse_options_end(struct parse_opt_ctx_t *ctx);


/*----- some often used options -----*/
extern int parse_opt_abbrev_cb(const struct option *, const char *, int);