summaryrefslogtreecommitdiff
path: root/lolcat.c
diff options
context:
space:
mode:
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);