summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-03-17 16:32:14 +0000
committerache <ache@FreeBSD.org>1997-03-17 16:32:14 +0000
commitd6d561981e80ff9eec40ff71d36e99a0e79f3634 (patch)
tree4ffce53e4bb3c182d28f92a6237d7060e8a7a296 /gnu
parent30ee004f83abc3d073d9982fe612b8c57e74a03f (diff)
downloadFreeBSD-src-d6d561981e80ff9eec40ff71d36e99a0e79f3634.zip
FreeBSD-src-d6d561981e80ff9eec40ff71d36e99a0e79f3634.tar.gz
Fix initstate() cast to match Lite2
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/awk/builtin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/awk/builtin.c b/gnu/usr.bin/awk/builtin.c
index c07d0d8..00c52e7 100644
--- a/gnu/usr.bin/awk/builtin.c
+++ b/gnu/usr.bin/awk/builtin.c
@@ -938,7 +938,7 @@ do_rand(tree)
NODE *tree;
{
if (firstrand) {
- (void) initstate((unsigned) 1, state, sizeof state);
+ (void) initstate((unsigned long) 1, state, sizeof state);
srandom(1);
firstrand = 0;
}
@@ -954,7 +954,7 @@ NODE *tree;
long ret = save_seed; /* SVR4 awk srand returns previous seed */
if (firstrand)
- (void) initstate((unsigned) 1, state, sizeof state);
+ (void) initstate((unsigned long) 1, state, sizeof state);
else
(void) setstate(state);
OpenPOWER on IntegriCloud