diff options
-rw-r--r-- | text-utils/rev.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/text-utils/rev.c b/text-utils/rev.c index 84d116d8c..13a41f633 100644 --- a/text-utils/rev.c +++ b/text-utils/rev.c @@ -64,8 +64,6 @@ #include "c.h" #include "closestream.h" -static wchar_t *buf; - static void sig_handler(int signo __attribute__ ((__unused__))) { _exit(EXIT_SUCCESS); @@ -100,7 +98,8 @@ static void reverse_str(wchar_t *str, size_t n) int main(int argc, char *argv[]) { - char *filename = "stdin"; + char const *filename = "stdin"; + wchar_t *buf; size_t len, bufsiz = BUFSIZ; FILE *fp = stdin; int ch, rval = EXIT_SUCCESS; |