[netperf-dev] netperf2 commit notice r468 - trunk/src
raj at netperf.org
raj at netperf.org
Wed Jul 27 15:05:53 PDT 2011
Author: raj
Date: 2011-07-27 15:05:53 -0700 (Wed, 27 Jul 2011)
New Revision: 468
Modified:
trunk/src/net_uuid.c
Log:
still more
Modified: trunk/src/net_uuid.c
===================================================================
--- trunk/src/net_uuid.c 2011-07-27 21:59:02 UTC (rev 467)
+++ trunk/src/net_uuid.c 2011-07-27 22:05:53 UTC (rev 468)
@@ -39,10 +39,15 @@
#ifdef WIN32
#include <windows.h>
#include "missing\stdint.h"
+#define snprintf _snprintf
#else
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
+#else
+# if HAVE_STDINT_H
+# include <stdint.h>
+# endif
#endif
#if HAVE_SYS_TIME_H
@@ -182,7 +187,7 @@
inited = 1;
}
- return rand();
+ return (uint16_t)rand();
}
/* puid -- print a UUID */
More information about the netperf-dev
mailing list