Re: error: md5.c invalid use of void expression

2013-01-04 Thread Eric Blake
On 01/04/2013 04:27 PM, Bruce Korb wrote: > In file included from shar.c:55:0: > ../lib/md5.c: In function 'md5_process_bytes': > ../lib/md5.c:261:13: error: invalid use of void expression What platform and compiler produced this message? Do you have a bug where your platform's memcpy() returns

Re: error: md5.c invalid use of void expression

2013-01-04 Thread Bruce Korb
On 01/04/13 15:21, Bruce Korb wrote: > On 01/04/13 12:47, Paul Eggert wrote: >> On 01/03/2013 08:30 AM, Petr Písař wrote: >>> 4.13.1 release replaced SWAP() macro with function. >> >> The 4.13.1 release shipped with an obsolete version of md5.c and md5.h, >> which (as you saw) has some problems. I

Re: error: md5.c invalid use of void expression

2013-01-04 Thread Bruce Korb
On 01/04/13 15:27, Bruce Korb wrote: > This fixes it: > > 261 memcpy (ctx->buffer, buffer, 64); > 262 md5_process_block (ctx->buffer, 64, ctx); > > There's no particular reason for having a nested call there anyway. > >From 200eb0ed19376b71f4ca8706c1db83be21a5937