uuid: Fix warnings carelessly introduced a few commits ago.
authorBen Pfaff <blp@nicira.com>
Fri, 13 Aug 2010 16:58:29 +0000 (09:58 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 13 Aug 2010 16:58:29 +0000 (09:58 -0700)
Commit e251c8 "uuid: Break code to read /dev/urandom into a new module"
carelessly introduced a few warnings, which this commit fixes up.

lib/uuid.c

index a1100f2fdc81fa9b6b10b79229706630cf807009..2aac4c7201f661ec1f168dac820b8ff5f45def85 100644 (file)
@@ -22,6 +22,7 @@
 #include <fcntl.h>
 #include <sys/time.h>
 #include <sys/types.h>
+#include <unistd.h>
 
 #include "aes128.h"
 #include "entropy.h"
@@ -33,7 +34,6 @@ static uint64_t counter[2];
 BUILD_ASSERT_DECL(sizeof counter == 16);
 
 static void do_init(void);
-static void read_urandom(void *buffer, size_t n);
 
 /*
  * Initialize the UUID module.  Aborts the program with an error message if