From b8c355d7896519f66e29cae20b34b99561f6a4cf Mon Sep 17 00:00:00 2001 From: dholland Date: Sun, 7 Jun 2009 21:04:54 +0000 Subject: [PATCH] a bit more const --- games/hack/hack.Decl.c | 6 +++--- games/hack/hack.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/games/hack/hack.Decl.c b/games/hack/hack.Decl.c index 69bd0691d959..45e1108cd9f2 100644 --- a/games/hack/hack.Decl.c +++ b/games/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/games/hack/hack.h b/games/hack/hack.h index 074fbbfb92c9..825daa72a6c4 100644 --- a/games/hack/hack.h +++ b/games/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[];