From 18451d9c4ce377951796a0ac6188ca7b1bf34335 Mon Sep 17 00:00:00 2001 From: dholland Date: Sat, 6 Aug 2011 20:42:43 +0000 Subject: Fix up still more casts; use NULL instead of (char *)0. --- hack/hack.apply.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hack/hack.apply.c') diff --git a/hack/hack.apply.c b/hack/hack.apply.c index a9984b94..24d7443a 100644 --- a/hack/hack.apply.c +++ b/hack/hack.apply.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.apply.c,v 1.11 2011/05/23 22:53:25 joerg Exp $ */ +/* $NetBSD: hack.apply.c,v 1.12 2011/08/06 20:42:43 dholland Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include #ifndef lint -__RCSID("$NetBSD: hack.apply.c,v 1.11 2011/05/23 22:53:25 joerg Exp $"); +__RCSID("$NetBSD: hack.apply.c,v 1.12 2011/08/06 20:42:43 dholland Exp $"); #endif /* not lint */ #include "hack.h" @@ -255,7 +255,7 @@ use_ice_box(struct obj *obj) else { pline("Do you want to take something out of the ice-box? [yn] "); if (readchar() == 'y') - if (askchain(fcobj, (char *) 0, 0, out_ice_box, ck_ice_box, 0)) + if (askchain(fcobj, NULL, 0, out_ice_box, ck_ice_box, 0)) return; pline("That was all. Do you wish to put something in? [yn] "); if (readchar() != 'y') @@ -490,7 +490,7 @@ use_pick_axe(struct obj *obj) && !sobj_at(ENORMOUS_ROCK, rx, ry)) { /* ACCESSIBLE or POOL */ pline("You swing your %s through thin air.", - aobjnam(obj, (char *) 0)); + aobjnam(obj, NULL)); } else { if (dig_pos.x != rx || dig_pos.y != ry || dig_level != dlevel || dig_down) { -- cgit v1.2.3-56-ge451