From 41506d415fe01a42e42a238c71a3ded696783a01 Mon Sep 17 00:00:00 2001 From: thorpej Date: Thu, 27 Apr 2000 19:31:23 +0000 Subject: Cast pointer diffs to long for printing with %ld. --- robots/score.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'robots') 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(); -- cgit v1.2.3-56-ge451