summaryrefslogtreecommitdiff
path: root/lolcat.c
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2015-07-07 02:49:51 +0200
committerjaseg <code@jaseg.net>2015-07-07 02:49:51 +0200
commit84dc917720ff12a741bf87824bef1e6c31c9e1f2 (patch)
tree0dd61b098bc8192dfcc7399db686926ff5a56442 /lolcat.c
parent5bd8c7dccaf04939fc8aa8b9a9aecdb56f2b9b91 (diff)
downloadlolcat-84dc917720ff12a741bf87824bef1e6c31c9e1f2.tar.gz
lolcat-84dc917720ff12a741bf87824bef1e6c31c9e1f2.tar.bz2
lolcat-84dc917720ff12a741bf87824bef1e6c31c9e1f2.zip
Link statically against musl
Diffstat (limited to 'lolcat.c')
-rw-r--r--lolcat.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lolcat.c b/lolcat.c
index 5c4b687..324de5b 100644
--- a/lolcat.c
+++ b/lolcat.c
@@ -19,7 +19,7 @@
#include <stdio.h>
#include <wchar.h>
#include <ctype.h>
-#include <error.h>
+#include <err.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
@@ -27,8 +27,6 @@
#include <unistd.h>
#include <sys/time.h>
-#include "fgetwc_fix.h"
-
static char helpstr[] = "\n"
"Usage: lolcat [-h horizontal_speed] [-v vertical_speed] [--] [FILES...]\n"
@@ -139,7 +137,7 @@ int main(int argc, char **argv){
return 2;
}
- while((c = _fgetwc_fixed(f)) > 0){
+ while((c = fgetwc(f)) > 0){
if(colors){
find_escape_sequences(c, &escape_state);