Make functions static
This commit is contained in:
parent
da9174ed19
commit
38db5de767
1 changed files with 3 additions and 3 deletions
6
lolcat.c
6
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue