tAvoid conflicts with stdlib. - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit e25d5b710a929bdd50c7fd84b57c507ee4a0fdb0
DIR parent 0debe1c68113127acdbc3865254bd4abb2121f40
HTML Author: wkj <devnull@localhost>
Date: Wed, 29 Dec 2004 01:30:19 +0000
Avoid conflicts with stdlib.
Diffstat:
M src/lib9/lrand.c | 2 +-
M src/lib9/rand.c | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
---
DIR diff --git a/src/lib9/lrand.c b/src/lib9/lrand.c
t@@ -49,7 +49,7 @@ isrand(long seed)
}
void
-srand(long seed)
+p9srand(long seed)
{
lock(&lk);
isrand(seed);
DIR diff --git a/src/lib9/rand.c b/src/lib9/rand.c
t@@ -1,8 +1,7 @@
#include <lib9.h>
int
-rand(void)
+p9rand(void)
{
return lrand() & 0x7fff;
}
-