summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2003-01-12 02:45:29 +0000
committerBob Beck <beck@cvs.openbsd.org>2003-01-12 02:45:29 +0000
commitd80e4b9150f85ea88c36f836b2e2e58c4b5129ca (patch)
treee1b2b564309a2386ca48886de449a7537aa5644b /usr.bin
parent59920fecf97e62e7f319d6011bb615ed063ef313 (diff)
Make this work on 64 bit arch's
ok millert@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/jot/jot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/jot/jot.c b/usr.bin/jot/jot.c
index 1dd3b5e2bcf..6eacda591a4 100644
--- a/usr.bin/jot/jot.c
+++ b/usr.bin/jot/jot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: jot.c,v 1.10 2002/05/29 18:33:38 deraadt Exp $ */
+/* $OpenBSD: jot.c,v 1.11 2003/01/12 02:45:28 beck Exp $ */
/* $NetBSD: jot.c,v 1.3 1994/12/02 20:29:43 pk Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)jot.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: jot.c,v 1.10 2002/05/29 18:33:38 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: jot.c,v 1.11 2003/01/12 02:45:28 beck Exp $";
#endif /* not lint */
/*
@@ -281,7 +281,7 @@ main(argc, argv)
if (randomize) {
*x = (ender - begin) * (ender > begin ? 1 : -1);
for (*i = 1; *i <= reps || infinity; (*i)++) {
- *y = (double) arc4random() / ULONG_MAX;
+ *y = (double) arc4random() / UINT_MAX;
putdata(*y * *x + begin, reps - *i);
}
}