Module Name: src Committed By: mrg Date: Sat Jul 2 02:09:09 UTC 2011
Modified Files: src/games/hack: hack.wield.c Log Message: rename a variable from "time" to "stime" (it's a string) To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/games/hack/hack.wield.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/games/hack/hack.wield.c diff -u src/games/hack/hack.wield.c:1.7 src/games/hack/hack.wield.c:1.8 --- src/games/hack/hack.wield.c:1.7 Sun Jun 7 18:30:39 2009 +++ src/games/hack/hack.wield.c Sat Jul 2 02:09:08 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: hack.wield.c,v 1.7 2009/06/07 18:30:39 dholland Exp $ */ +/* $NetBSD: hack.wield.c,v 1.8 2011/07/02 02:09:08 mrg Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.wield.c,v 1.7 2009/06/07 18:30:39 dholland Exp $"); +__RCSID("$NetBSD: hack.wield.c,v 1.8 2011/07/02 02:09:08 mrg Exp $"); #endif /* not lint */ #include "hack.h" @@ -131,7 +131,7 @@ chwepon(struct obj *otmp, int amount) { const char *color = (amount < 0) ? "black" : "green"; - const char *time; + const char *stime; if (!uwep || uwep->olet != WEAPON_SYM) { strange_feeling(otmp, (amount > 0) ? "Your hands twitch." @@ -160,9 +160,9 @@ } if (!rn2(6)) amount *= 2; - time = (amount * amount == 1) ? "moment" : "while"; + stime = (amount * amount == 1) ? "moment" : "while"; pline("Your %s %s for a %s.", - aobjnam(uwep, "glow"), color, time); + aobjnam(uwep, "glow"), color, stime); uwep->spe += amount; if (amount > 0) uwep->cursed = 0;