From 2276d836398564a90f5ff237e63ca3104ae509f0 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 11 Jul 2002 11:11:56 +0000 Subject: Fixup warnings and undefined operations that show up in gcc-3.1 -Erik --- coreutils/md5sum.c | 10 +++++----- coreutils/uuencode.c | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'coreutils') diff --git a/coreutils/md5sum.c b/coreutils/md5sum.c index 83c769ef2..f5be4486c 100644 --- a/coreutils/md5sum.c +++ b/coreutils/md5sum.c @@ -434,7 +434,7 @@ static void md5_process_block(const void *buffer, size_t len, struct md5_ctx *ct temp += FI(B,C,D); } temp += cwp[(int)(*pp++)] + *pc++; - temp = CYCLIC (temp, ps[i&3]); + CYCLIC (temp, ps[i&3]); temp += B; A = D; D = C; C = B; B = temp; } @@ -443,7 +443,7 @@ static void md5_process_block(const void *buffer, size_t len, struct md5_ctx *ct for ( i = 0 ; i < 16 ; i++ ) { temp = A + FF(B,C,D) + cwp[(int)(*pp++)] + *pc++; - temp = CYCLIC (temp, ps[i&3]); + CYCLIC (temp, ps[i&3]); temp += B; A = D; D = C; C = B; B = temp; } @@ -451,21 +451,21 @@ static void md5_process_block(const void *buffer, size_t len, struct md5_ctx *ct ps += 4; for ( i = 0 ; i < 16 ; i++ ) { temp = A + FG(B,C,D) + cwp[(int)(*pp++)] + *pc++; - temp = CYCLIC (temp, ps[i&3]); + CYCLIC (temp, ps[i&3]); temp += B; A = D; D = C; C = B; B = temp; } ps += 4; for ( i = 0 ; i < 16 ; i++ ) { temp = A + FH(B,C,D) + cwp[(int)(*pp++)] + *pc++; - temp = CYCLIC (temp, ps[i&3]); + CYCLIC (temp, ps[i&3]); temp += B; A = D; D = C; C = B; B = temp; } ps += 4; for ( i = 0 ; i < 16 ; i++ ) { temp = A + FI(B,C,D) + cwp[(int)(*pp++)] + *pc++; - temp = CYCLIC (temp, ps[i&3]); + CYCLIC (temp, ps[i&3]); temp += B; A = D; D = C; C = B; B = temp; } diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c index 24b9f1c6a..1d42494fd 100644 --- a/coreutils/uuencode.c +++ b/coreutils/uuencode.c @@ -21,6 +21,7 @@ */ #include #include +#include #include #include #include @@ -49,7 +50,7 @@ static char tbl_std[65] = { 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '^', '_', - '\`' /* termination character */ + '`' /* termination character */ }; /* -- cgit v1.2.3