summaryrefslogtreecommitdiffstats
path: root/robots
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2000-04-27 19:31:23 +0000
committerthorpej <thorpej@NetBSD.org>2000-04-27 19:31:23 +0000
commit41506d415fe01a42e42a238c71a3ded696783a01 (patch)
tree5ec4bdb5bc57662079e03dc6a46692285b1a6bc4 /robots
parent9dda35120cdd8820806faf3e27ade797d274d33c (diff)
downloadbsdgames-darwin-41506d415fe01a42e42a238c71a3ded696783a01.tar.gz
bsdgames-darwin-41506d415fe01a42e42a238c71a3ded696783a01.tar.zst
bsdgames-darwin-41506d415fe01a42e42a238c71a3ded696783a01.zip
Cast pointer diffs to long for printing with %ld.
Diffstat (limited to 'robots')
-rw-r--r--robots/score.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/robots/score.c b/robots/score.c
index 4d4222d2..03038b9b 100644
--- a/robots/score.c
+++ b/robots/score.c
@@ -1,4 +1,4 @@
-/* $NetBSD: score.c,v 1.14 2000/04/27 00:30:53 jdc Exp $ */
+/* $NetBSD: score.c,v 1.15 2000/04/27 19:31:23 thorpej Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)score.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: score.c,v 1.14 2000/04/27 00:30:53 jdc Exp $");
+__RCSID("$NetBSD: score.c,v 1.15 2000/04/27 19:31:23 thorpej Exp $");
#endif
#endif /* not lint */
@@ -176,7 +176,7 @@ score(score_wfd)
if (!done_show && scp->s_uid == uid && scp->s_score == Score)
standout();
printw("%5ld %5d %-8.8s %-9.9s %5d",
- (scp - Top) + 1, scp->s_score, scp->s_name,
+ (long)(scp - Top) + 1, scp->s_score, scp->s_name,
scp->s_auto ? "(autobot)" : "", scp->s_level);
if (!done_show && scp->s_uid == uid && scp->s_score == Score) {
standend();