From c91f5974b966de06076e916b8b8eb29245768be1 Mon Sep 17 00:00:00 2001 From: Steve Price Date: Mon, 19 Apr 1999 04:05:25 +0000 Subject: Use const where appropriate. PR: 10739 Submitted by: Stephen J. Rosnowski Obtained from: NetBSD PR 6151 --- usr.bin/banner/banner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/banner') diff --git a/usr.bin/banner/banner.c b/usr.bin/banner/banner.c index 15a2952ed1f4..e516f57f60cc 100644 --- a/usr.bin/banner/banner.c +++ b/usr.bin/banner/banner.c @@ -58,7 +58,7 @@ static const char sccsid[] = "@(#)banner.c 8.4 (Berkeley) 4/29/95"; #define NBYTES 9271 /* Pointers into data_table for each ASCII char */ -int asc_ptr[NCHARS] = { +const int asc_ptr[NCHARS] = { /* ^@ */ 0, 0, 0, 0, 0, 0, 0, 0, /* ^H */ 0, 0, 0, 0, 0, 0, 0, 0, /* ^P */ 0, 0, 0, 0, 0, 0, 0, 0, @@ -85,7 +85,7 @@ int asc_ptr[NCHARS] = { * is the next elt in array) and goto second * next element in array. */ -char data_table[NBYTES] = { +const char data_table[NBYTES] = { /* 0 1 2 3 4 5 6 7 8 9 */ /* 0 */ 129, 227, 130, 34, 6, 90, 19, 129, 32, 10, /* 10 */ 74, 40, 129, 31, 12, 64, 53, 129, 30, 14, -- cgit v1.2.3