[hackers] [sbase] Don't call var "read" || sin

From: <git_AT_suckless.org>
Date: Sun, 1 Feb 2015 11:22:44 +0100 (CET)

commit 437909be49bbeb11513d4810fa21cc37330d74f6
Author: sin <sin_AT_2f30.org>
Date: Sun Feb 1 10:22:11 2015 +0000

    Don't call var "read"

diff --git a/wc.c b/wc.c
index 6af23d4..39500c5 100644
--- a/wc.c
+++ b/wc.c
_AT_@ -32,12 +32,12 @@ output(const char *str, size_t nc, size_t nl, size_t nw)
 void
 wc(FILE *fp, const char *str)
 {
- int word = 0, read;
+ int word = 0, rlen;
         Rune c;
         size_t nc = 0, nl = 0, nw = 0;
 
- while ((read = readrune(str, fp, &c))) {
- nc += (cmode == 'c') ? read :
+ while ((rlen = readrune(str, fp, &c))) {
+ nc += (cmode == 'c') ? rlen :
                       (c != Runeerror) ? 1 : 0;
                 if (c == '\n')
                         nl++;
Received on Sun Feb 01 2015 - 11:22:44 CET

This archive was generated by hypermail 2.3.0 : Sun Feb 01 2015 - 11:24:16 CET