hcrypto/rand-unix.c: Ignore write(2) result harder
commitdb8f03740af4d0d7005502ff46f9c1742f636e2a
authorJeffrey Hutzelman <jhutz@cmu.edu>
Wed, 19 Jun 2013 02:40:49 +0000 (18 22:40 -0400)
committerJeffrey Hutzelman <jhutz@cmu.edu>
Wed, 19 Jun 2013 02:40:49 +0000 (18 22:40 -0400)
tree8a89cd30102a53886e9d410cda0307a2b3292f76
parent92c6891c368cae5c2402727c1f66f1c60778199d
hcrypto/rand-unix.c: Ignore write(2) result harder

unix_seed(), called by the add-seed-data op unix_add(), attempts to
write seed data to the random data device.  If this fails, the failure
is ignored, as it must be, since there is no way to inform the caller.

This change modifies the way in which the return value from write(2)
is ignored, to avoid compiler warnings when building on Ubuntu 12.10,
with gcc 4.7.2 and eglibc 2.15-0ubuntu20.1.
lib/hcrypto/rand-unix.c