summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2018-12-02 13:35:37 +0900
committerjaseg <git@jaseg.net>2018-12-02 13:37:31 +0900
commit38db5de767adae9544f24bca9bc1dd43e827cf10 (patch)
treea24db77bb0de5d6d64dec8ffbdf1c9ba4de427fa
parentda9174ed19868c06299d9363db232d6a9eca31ae (diff)
downloadlolcat-38db5de767adae9544f24bca9bc1dd43e827cf10.tar.gz
lolcat-38db5de767adae9544f24bca9bc1dd43e827cf10.tar.bz2
lolcat-38db5de767adae9544f24bca9bc1dd43e827cf10.zip
Make functions static
-rw-r--r--lolcat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lolcat.c b/lolcat.c
index d9a040a..8e13da7 100644
--- a/lolcat.c
+++ b/lolcat.c
@@ -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);