Constify tables. Re-fixes PR/6151, whose changes went lost since.

This commit is contained in:
mjl 2000-10-04 19:33:16 +00:00
parent abff7e84fd
commit 5200bd03ee
2 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: banner.h,v 1.3 2000/05/30 12:03:31 sjg Exp $ */ /* $NetBSD: banner.h,v 1.4 2000/10/04 19:33:16 mjl Exp $ */
/* /*
* Various defines needed for code lifted from lpd. * Various defines needed for code lifted from lpd.
@ -24,5 +24,5 @@
#define HEIGHT 9 /* height of characters */ #define HEIGHT 9 /* height of characters */
#define WIDTH 8 /* width of characters */ #define WIDTH 8 /* width of characters */
extern char scnkey_lpd[][HEIGHT]; extern const char scnkey_lpd[][HEIGHT];
extern char scnkey_def[][HEIGHT]; extern const char scnkey_def[][HEIGHT];

View File

@ -1,4 +1,4 @@
/* $NetBSD: chset.c,v 1.4 2000/05/30 12:03:31 sjg Exp $ */ /* $NetBSD: chset.c,v 1.5 2000/10/04 19:33:16 mjl Exp $ */
/* /*
* Changes for banner(1) * Changes for banner(1)
@ -56,7 +56,7 @@
#if 0 #if 0
static char sccsid[] = "@(#)lpdchar.c 8.1 (Berkeley) 6/6/93"; static char sccsid[] = "@(#)lpdchar.c 8.1 (Berkeley) 6/6/93";
#else #else
__RCSID("$NetBSD: chset.c,v 1.4 2000/05/30 12:03:31 sjg Exp $"); __RCSID("$NetBSD: chset.c,v 1.5 2000/10/04 19:33:16 mjl Exp $");
#endif #endif
#endif /* not lint */ #endif /* not lint */
@ -200,7 +200,7 @@ __RCSID("$NetBSD: chset.c,v 1.4 2000/05/30 12:03:31 sjg Exp $");
/* /*
* This is relatively easy to modify just look: * This is relatively easy to modify just look:
*/ */
char scnkey_lpd[][HEIGHT] = const char scnkey_lpd[][HEIGHT] =
{ {
{ c_______, { c_______,
c_______, c_______,
@ -1166,7 +1166,7 @@ char scnkey_lpd[][HEIGHT] =
/* /*
* This is the real banner char set * This is the real banner char set
*/ */
char scnkey_def[][HEIGHT] = const char scnkey_def[][HEIGHT] =
{ {
{ {
c_______, c_______,