sprinkle some more const

This commit is contained in:
dholland 2009-06-07 20:31:10 +00:00
parent 8d5216e80d
commit a7a3b831c7
3 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: hack.Decl.c,v 1.6 2003/04/02 18:36:35 jsm Exp $ */
/* $NetBSD: hack.Decl.c,v 1.7 2009/06/07 20:31:10 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@ -63,11 +63,11 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: hack.Decl.c,v 1.6 2003/04/02 18:36:35 jsm Exp $");
__RCSID("$NetBSD: hack.Decl.c,v 1.7 2009/06/07 20:31:10 dholland Exp $");
#endif /* not lint */
#include "hack.h"
char nul[40]; /* contains zeros */
const char nul[40]; /* contains zeros */
char plname[PL_NSIZ];/* player name */
char lock[PL_NSIZ + 4] = "1lock"; /* long enough for login name
* .99 */

View File

@ -1,4 +1,4 @@
/* $NetBSD: hack.fight.c,v 1.10 2009/06/07 20:13:18 dholland Exp $ */
/* $NetBSD: hack.fight.c,v 1.11 2009/06/07 20:31:10 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: hack.fight.c,v 1.10 2009/06/07 20:13:18 dholland Exp $");
__RCSID("$NetBSD: hack.fight.c,v 1.11 2009/06/07 20:31:10 dholland Exp $");
#endif /* not lint */
#include "hack.h"
@ -209,7 +209,7 @@ thitu(int tlev, int dam, const char *name)
}
}
char mlarge[] = "bCDdegIlmnoPSsTUwY',&";
const char mlarge[] = "bCDdegIlmnoPSsTUwY',&";
/* return TRUE if mon still alive */
boolean

View File

@ -1,4 +1,4 @@
/* $NetBSD: hack.h,v 1.10 2004/01/27 20:30:29 jsm Exp $ */
/* $NetBSD: hack.h,v 1.11 2009/06/07 20:31:10 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@ -203,9 +203,9 @@ extern char SAVEF[];
extern char fut_geno[60]; /* idem */
extern char genocided[60]; /* defined in Decl.c */
extern char lock[];
extern char mlarge[];
extern const char mlarge[];
extern char morc;
extern char nul[];
extern const char nul[];
extern char plname[PL_NSIZ], pl_character[PL_CSIZ];
extern const char quitchars[];
extern char sdir[]; /* defined in hack.c */