Jim Meyering <[EMAIL PROTECTED]> writes:

>> +  memcpy (s, rand_state, sizeof (struct isaac_state));
>
> Please do this instead:
>   memcpy (s, rand_state, sizeof *s);

"*s = *rand_state" should work just fine.

> ...
>> +      else if (key->random_hash)
>> +        {
>> +          char diga[HASH_SIZE];
>> +          char digb[HASH_SIZE];
>
> If you declare these to be of type `uint32_t diga[HASH_WORDS]',
> then you can remove the casts below:

This is not only cosmetical, the char arrays will likely be unaligned for
uint32_t.

Andreas.

-- 
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to