diff options
| author | kleink <kleink@NetBSD.org> | 1998-02-06 14:35:46 +0000 |
|---|---|---|
| committer | kleink <kleink@NetBSD.org> | 1998-02-06 14:35:46 +0000 |
| commit | 5f311d2174d8bc97d958fdb281db00686b1fb05c (patch) | |
| tree | 2d7c55c5715e1ae609ad4cb60a108102c055b080 /lib/libc/stdlib | |
| parent | ee3e47997fe27c41d124ed197c7570f7f851d38f (diff) | |
Cast size_t to long for printing.
Diffstat (limited to 'lib/libc/stdlib')
| -rw-r--r-- | lib/libc/stdlib/random.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/stdlib/random.c b/lib/libc/stdlib/random.c index 829aa6a7fa6..f5402520be0 100644 --- a/lib/libc/stdlib/random.c +++ b/lib/libc/stdlib/random.c @@ -1,4 +1,4 @@ -/* $NetBSD: random.c,v 1.9 1998/02/04 21:06:18 kleink Exp $ */ +/* $NetBSD: random.c,v 1.10 1998/02/06 14:35:46 kleink Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)random.c 8.2 (Berkeley) 5/19/95"; #else -__RCSID("$NetBSD: random.c,v 1.9 1998/02/04 21:06:18 kleink Exp $"); +__RCSID("$NetBSD: random.c,v 1.10 1998/02/06 14:35:46 kleink Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -279,7 +279,8 @@ initstate(seed, arg_state, n) state[-1] = MAX_TYPES * (rptr - state) + rand_type; if (n < BREAK_0) { (void)fprintf(stderr, - "random: not enough state (%ld bytes); ignored.\n", n); + "random: not enough state (%ld bytes); ignored.\n", + (long)n); return(0); } if (n < BREAK_1) { |
