From 18712b203227cc60162bfddc2c7165a5ec393135 Mon Sep 17 00:00:00 2001 From: David Galos Date: Fri, 5 Jul 2013 17:42:30 -0400 Subject: [PATCH] Converting empty for to while in sha1sum --- util/sha1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/sha1.c b/util/sha1.c index f828395..9910d78 100644 --- a/util/sha1.c +++ b/util/sha1.c @@ -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++);