summaryrefslogtreecommitdiffstats
path: root/src/core/misc.c
diff options
context:
space:
mode:
authorMichael Brown2006-12-22 02:44:51 +0100
committerMichael Brown2006-12-22 02:44:51 +0100
commit73e3e02367e1b8aa45dd3d137ba81f94ee76f0f9 (patch)
treebc68c46f939c3d48b5e6bcac1b5a1f53a142d8fe /src/core/misc.c
parentMake start_timer() and stop_timer() robust against incorrect usage. (diff)
downloadipxe-73e3e02367e1b8aa45dd3d137ba81f94ee76f0f9.tar.gz
ipxe-73e3e02367e1b8aa45dd3d137ba81f94ee76f0f9.tar.xz
ipxe-73e3e02367e1b8aa45dd3d137ba81f94ee76f0f9.zip
Fix prototype of random() and move to stdlib.h
Diffstat (limited to 'src/core/misc.c')
-rw-r--r--src/core/misc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/misc.c b/src/core/misc.c
index 3930d265..19d114cc 100644
--- a/src/core/misc.c
+++ b/src/core/misc.c
@@ -4,6 +4,7 @@ MISC Support Routines
#include "etherboot.h"
#include "console.h"
+#include <stdlib.h>
/**************************************************************************
IPCHKSUM - Checksum IP Header
@@ -59,7 +60,7 @@ uint16_t add_ipchksums(unsigned long offset, uint16_t sum, uint16_t new)
/**************************************************************************
RANDOM - compute a random number between 0 and 2147483647L or 2147483562?
**************************************************************************/
-int32_t random(void)
+long int random(void)
{
static int32_t seed = 0;
int32_t q;