mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
cleanup: fix two empty expression statement has no effect
Follow-up to 26e46617b9
This commit is contained in:
parent
26e46617b9
commit
a6d20b89db
@ -40,7 +40,7 @@
|
||||
/* Portable sleep for platforms other than Windows. */
|
||||
#define WAITMS(x) \
|
||||
struct timeval wait = { 0, (x) * 1000 }; \
|
||||
(void)select(0, NULL, NULL, NULL, &wait);
|
||||
(void)select(0, NULL, NULL, NULL, &wait)
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
13
lib/sha256.c
13
lib/sha256.c
@ -344,11 +344,14 @@ static int sha256_compress(struct sha256_state *md,
|
||||
}
|
||||
|
||||
/* Compress */
|
||||
#define RND(a,b,c,d,e,f,g,h,i) \
|
||||
unsigned long t0 = h + Sigma1(e) + Ch(e, f, g) + K[i] + W[i]; \
|
||||
unsigned long t1 = Sigma0(a) + Maj(a, b, c); \
|
||||
d += t0; \
|
||||
h = t0 + t1;
|
||||
#define RND(a,b,c,d,e,f,g,h,i) \
|
||||
do { \
|
||||
unsigned long t0 = h + Sigma1(e) + Ch(e, f, g) + K[i] + W[i]; \
|
||||
unsigned long t1 = Sigma0(a) + Maj(a, b, c); \
|
||||
d += t0; \
|
||||
h = t0 + t1; \
|
||||
} while(0)
|
||||
|
||||
for(i = 0; i < 64; ++i) {
|
||||
unsigned long t;
|
||||
RND(S[0], S[1], S[2], S[3], S[4], S[5], S[6], S[7], i);
|
||||
|
Loading…
Reference in New Issue
Block a user