[hackers] [sbase] Use int instead of char for getc() || sin

From: <git_AT_suckless.org>
Date: Sat, 20 Jul 2013 17:35:36 +0200

commit c1730c78de68b99c0e93a7a88612ddaaf7c35454
Author: sin <sin_AT_2f30.org>
Date: Sat Jul 20 12:09:42 2013 +0100

    Use int instead of char for getc()

diff --git a/wc.c b/wc.c
index 45d6dda..4226a44 100644
--- a/wc.c
+++ b/wc.c
_AT_@ -72,7 +72,7 @@ void
 wc(FILE *fp, const char *str)
 {
         bool word = false;
- char c;
+ int c;
         long nc = 0, nl = 0, nw = 0;
 
         while((c = getc(fp)) != EOF) {
Received on Sat Jul 20 2013 - 17:35:36 CEST

This archive was generated by hypermail 2.3.0 : Sat Jul 20 2013 - 17:36:10 CEST