diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-08-11 11:56:58 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-08-11 11:59:54 -0400 |
commit | 68f071d16fb8d24df54fff699e25d7df2889eb72 (patch) | |
tree | 0c07f557e70c51b6c3dfa0962af1ca9a482028af | |
parent | 670d5f9d3e33c95bf4d6f06986099671f00923d7 (diff) | |
download | mirror-ponymix-68f071d16fb8d24df54fff699e25d7df2889eb72.tar.gz mirror-ponymix-68f071d16fb8d24df54fff699e25d7df2889eb72.tar.bz2 mirror-ponymix-68f071d16fb8d24df54fff699e25d7df2889eb72.zip |
add static qualifiers where needed
-rw-r--r-- | pulsemix.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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] <command>...\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; |