]> pd.if.org Git - uuid/commitdiff
add leading prototype for pd_uuid_rng_get_bytes
authorNathan Wagner <nw@hydaspes.if.org>
Tue, 23 Sep 2014 04:41:54 +0000 (04:41 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Tue, 23 Sep 2014 04:41:54 +0000 (04:41 +0000)
gcc was giving a warning for a missing prototype.  A prototype isn't
actually needed since there's one in pduuid.h and the function is
only used after it is defined in rng.c, but providing one will suppress
a warning without having to change the compile flags.

rng.c

diff --git a/rng.c b/rng.c
index 5a5155946829fe0c87781f86ae2d4822cd1bef9d..72960c9b30f32bf69b9c1ed0cb344d3637ac381a 100644 (file)
--- a/rng.c
+++ b/rng.c
@@ -108,6 +108,8 @@ static unsigned long rng_win32(unsigned char *buf, unsigned long len) {
 
 #endif
 
+unsigned long pd_uuid_rng_get_bytes(unsigned char *out, unsigned long outlen);
+
 unsigned long   pd_uuid_rng_get_bytes(unsigned char *out, unsigned long outlen) {
        unsigned long   x;