From 8e0bc1dda8fbdb3cb6a9635d807371519347a3ba Mon Sep 17 00:00:00 2001 From: dholland Date: Sun, 7 Jun 2009 21:04:54 +0000 Subject: a bit more const --- hack/hack.Decl.c | 6 +++--- hack/hack.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'hack') diff --git a/hack/hack.Decl.c b/hack/hack.Decl.c index 69bd0691..45e1108c 100644 --- a/hack/hack.Decl.c +++ b/hack/hack.Decl.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.Decl.c,v 1.7 2009/06/07 20:31:10 dholland Exp $ */ +/* $NetBSD: hack.Decl.c,v 1.8 2009/06/07 21:04:54 dholland Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include #ifndef lint -__RCSID("$NetBSD: hack.Decl.c,v 1.7 2009/06/07 20:31:10 dholland Exp $"); +__RCSID("$NetBSD: hack.Decl.c,v 1.8 2009/06/07 21:04:54 dholland Exp $"); #endif /* not lint */ #include "hack.h" @@ -92,7 +92,7 @@ struct monst youmonst; /* dummy; used as return value for boomhit */ xchar dlevel = 1; xchar xupstair, yupstair, xdnstair, ydnstair; -char *save_cm = 0; +const char *save_cm = NULL; const char *killer, *nomovemsg; long moves = 1; diff --git a/hack/hack.h b/hack/hack.h index 074fbbfb..825daa72 100644 --- a/hack/hack.h +++ b/hack/hack.h @@ -1,4 +1,4 @@ -/* $NetBSD: hack.h,v 1.11 2009/06/07 20:31:10 dholland Exp $ */ +/* $NetBSD: hack.h,v 1.12 2009/06/07 21:04:54 dholland Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -196,7 +196,7 @@ extern char *hname; extern const char *const hu_stat[]; /* in eat.c */ extern const char *nomovemsg; extern const char *occtxt; -extern char *save_cm; +extern const char *save_cm; extern const char *killer; extern const char *const traps[]; extern char SAVEF[]; -- cgit v1.2.3-56-ge451