summaryrefslogtreecommitdiff
path: root/lolcat.c
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2018-12-02 13:20:46 +0900
committerjaseg <git@jaseg.net>2018-12-02 13:37:31 +0900
commit29bc06513dbb8beb223f6fe6c13cfe2ad3bed20f (patch)
tree3c3c9f0820a616c1f89e927a0e89b049bc065ab8 /lolcat.c
parentceb4d662f75bc7cd00f6823821acb737ef592489 (diff)
downloadlolcat-29bc06513dbb8beb223f6fe6c13cfe2ad3bed20f.tar.gz
lolcat-29bc06513dbb8beb223f6fe6c13cfe2ad3bed20f.tar.bz2
lolcat-29bc06513dbb8beb223f6fe6c13cfe2ad3bed20f.zip
Use wint_t for find_escape_sequences
Thanks @BourgeoisBear
Diffstat (limited to 'lolcat.c')
-rw-r--r--lolcat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lolcat.c b/lolcat.c
index bc29478..213ccc6 100644
--- a/lolcat.c
+++ b/lolcat.c
@@ -51,7 +51,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(int c, int* state)
+void find_escape_sequences(wint_t c, int* state)
{
if (c == '\033') { /* Escape sequence YAY */
*state = 1;