diff options
author | jaseg <git@jaseg.net> | 2018-12-02 13:35:37 +0900 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2018-12-02 13:37:31 +0900 |
commit | 38db5de767adae9544f24bca9bc1dd43e827cf10 (patch) | |
tree | a24db77bb0de5d6d64dec8ffbdf1c9ba4de427fa | |
parent | da9174ed19868c06299d9363db232d6a9eca31ae (diff) | |
download | lolcat-38db5de767adae9544f24bca9bc1dd43e827cf10.tar.gz lolcat-38db5de767adae9544f24bca9bc1dd43e827cf10.tar.bz2 lolcat-38db5de767adae9544f24bca9bc1dd43e827cf10.zip |
Make functions static
-rw-r--r-- | lolcat.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -52,7 +52,7 @@ static char helpstr[] = "\n" #define ARRAY_SIZE(foo) (sizeof(foo) / sizeof(foo[0])) const unsigned char codes[] = { 39, 38, 44, 43, 49, 48, 84, 83, 119, 118, 154, 148, 184, 178, 214, 208, 209, 203, 204, 198, 199, 163, 164, 128, 129, 93, 99, 63, 69, 33 }; -void find_escape_sequences(wint_t c, int* state) +static void find_escape_sequences(wint_t c, int* state) { if (c == '\033') { /* Escape sequence YAY */ *state = 1; @@ -64,13 +64,13 @@ void find_escape_sequences(wint_t c, int* state) } } -void usage() +static void usage(void) { wprintf(L"Usage: lolcat [-h horizontal_speed] [-v vertical_speed] [--] [FILES...]\n"); exit(1); } -void version() +static void version(void) { wprintf(L"lolcat version 0.1, (c) 2014 jaseg\n"); exit(0); |