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

From: <git_AT_suckless.org>
Date: Tue, 24 Mar 2015 23:53:33 +0100 (CET)

commit 5552db75baf06b844f874225015dc334980f35d8
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 Tue Mar 24 2015 - 23:53:33 CET

This archive was generated by hypermail 2.3.0 : Wed Mar 25 2015 - 00:07:33 CET