diff options
author | jaseg <git@jaseg.net> | 2018-12-02 13:20:46 +0900 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2018-12-02 13:37:31 +0900 |
commit | 29bc06513dbb8beb223f6fe6c13cfe2ad3bed20f (patch) | |
tree | 3c3c9f0820a616c1f89e927a0e89b049bc065ab8 | |
parent | ceb4d662f75bc7cd00f6823821acb737ef592489 (diff) | |
download | lolcat-29bc06513dbb8beb223f6fe6c13cfe2ad3bed20f.tar.gz lolcat-29bc06513dbb8beb223f6fe6c13cfe2ad3bed20f.tar.bz2 lolcat-29bc06513dbb8beb223f6fe6c13cfe2ad3bed20f.zip |
Use wint_t for find_escape_sequences
Thanks @BourgeoisBear
-rw-r--r-- | lolcat.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |