From 68f071d16fb8d24df54fff699e25d7df2889eb72 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 11 Aug 2012 11:56:58 -0400 Subject: add static qualifiers where needed --- pulsemix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pulsemix.c') diff --git a/pulsemix.c b/pulsemix.c index 905552a..46f54e9 100644 --- a/pulsemix.c +++ b/pulsemix.c @@ -103,7 +103,7 @@ struct pulseaudio_t { struct io_t *head; }; -int xstrtol(const char *str, long *out) +static int xstrtol(const char *str, long *out) { char *end = NULL; @@ -437,7 +437,7 @@ static int pulse_connect(struct pulseaudio_t *pulse) return 0; } -void usage(FILE *out) +static void __attribute__((__noreturn__)) usage(FILE *out) { fprintf(out, "usage: %s [options] ...\n", program_invocation_short_name); fputs("\nOptions:\n", out); @@ -463,7 +463,7 @@ void usage(FILE *out) exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS); } -enum action string_to_verb(const char *string) +static enum action string_to_verb(const char *string) { if (strcmp(string, "defaults") == 0) return ACTION_DEFAULTS; -- cgit v1.2.3