[hackers] [sbase] Rename variable `dif' to `diff' in comm(1) || sin

From: <git_AT_suckless.org>
Date: Fri, 04 Apr 2014 12:06:35 +0200

commit fbf71521f15bd9a3080a756e3ef7820b532ea2a8
Author: sin <sin_AT_2f30.org>
Date: Fri Apr 4 11:05:47 2014 +0100

    Rename variable `dif' to `diff' in comm(1)

diff --git a/comm.c b/comm.c
index b90abb3..694d48c 100644
--- a/comm.c
+++ b/comm.c
_AT_@ -23,7 +23,7 @@ usage(void)
 int
 main(int argc, char *argv[])
 {
- int i, dif = 0;
+ int i, diff = 0;
         FILE *fp[2];
         char lines[2][LINE_MAX+1];
 
_AT_@ -46,21 +46,21 @@ main(int argc, char *argv[])
         }
 
         for(;;) {
- if(dif <= 0) {
+ if(diff <= 0) {
                         if(!nextline(lines[0], sizeof(lines[0]),
                                                 fp[0], argv[0])) {
                                 finish(1, fp[1], argv[1]);
                         }
                 }
- if(dif >= 0) {
+ if(diff >= 0) {
                         if(!nextline(lines[1], sizeof(lines[1]),
                                                 fp[1], argv[1])) {
                                 finish(0, fp[0], argv[0]);
                         }
                 }
- dif = strcmp(lines[0], lines[1]);
- dif = CLAMP(dif, -1, 1);
- printline((2-dif) % 3, lines[MAX(0, dif)]);
+ diff = strcmp(lines[0], lines[1]);
+ diff = CLAMP(diff, -1, 1);
+ printline((2-diff) % 3, lines[MAX(0, diff)]);
         }
 
         return EXIT_SUCCESS;
Received on Fri Apr 04 2014 - 12:06:35 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 04 2014 - 12:12:16 CEST