[hackers] [sbase] Converting empty for to while in sha1sum || David Galos

From: <git_AT_suckless.org>
Date: Fri, 05 Jul 2013 23:46:38 +0200

commit 18712b203227cc60162bfddc2c7165a5ec393135
Author: David Galos <galosd83_AT_students.rowan.edu>
Date: Fri Jul 5 17:42:30 2013 -0400

    Converting empty for to while in sha1sum

diff --git a/util/sha1.c b/util/sha1.c
index f828395..9910d78 100644
--- a/util/sha1.c
+++ b/util/sha1.c
_AT_@ -38,21 +38,21 @@ static void processblock(struct sha1 *s, const uint8_t *buf)
                 G0(c,d,e,a,b,i++);
                 G0(b,c,d,e,a,i++);
         }
- for (; i < 40; ) {
+ while (i < 40) {
                 G1(a,b,c,d,e,i++);
                 G1(e,a,b,c,d,i++);
                 G1(d,e,a,b,c,i++);
                 G1(c,d,e,a,b,i++);
                 G1(b,c,d,e,a,i++);
         }
- for (; i < 60; ) {
+ while (i < 60) {
                 G2(a,b,c,d,e,i++);
                 G2(e,a,b,c,d,i++);
                 G2(d,e,a,b,c,i++);
                 G2(c,d,e,a,b,i++);
                 G2(b,c,d,e,a,i++);
         }
- for (; i < 80; ) {
+ while (i < 80) {
                 G3(a,b,c,d,e,i++);
                 G3(e,a,b,c,d,i++);
                 G3(d,e,a,b,c,i++);
Received on Fri Jul 05 2013 - 23:46:38 CEST

This archive was generated by hypermail 2.3.0 : Fri Jul 05 2013 - 23:48:10 CEST