* Fix warn_unused_result compiler warnings with FORTIFY_SOURCE defined.

This commit is contained in:
Justin Maggard
2012-03-28 08:15:15 +00:00
parent 29738ed064
commit 40f3664390
8 changed files with 79 additions and 72 deletions

2
uuid.c
View File

@ -98,7 +98,7 @@ read_random_bytes(unsigned char *buf, size_t size)
i = open("/dev/urandom", O_RDONLY);
if(i >= 0)
{
read(i, buf, size);
if(read(i, buf, size));
close(i);
}
/* Paranoia. /dev/urandom may be missing.