summaryrefslogtreecommitdiffstats
path: root/usr.bin/banner
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1999-04-19 04:05:25 +0000
committersteve <steve@FreeBSD.org>1999-04-19 04:05:25 +0000
commit18d612c0411a92802e554e6dbfac69e409f0655d (patch)
tree75dc2756d65d953055179228c50eba696bfefa36 /usr.bin/banner
parentd59a3ca336bac3dac6ad8918ff6cb28fcbbba718 (diff)
downloadFreeBSD-src-18d612c0411a92802e554e6dbfac69e409f0655d.zip
FreeBSD-src-18d612c0411a92802e554e6dbfac69e409f0655d.tar.gz
Use const where appropriate.
PR: 10739 Submitted by: Stephen J. Rosnowski <sjr@home.net> Obtained from: NetBSD PR 6151
Diffstat (limited to 'usr.bin/banner')
-rw-r--r--usr.bin/banner/banner.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/banner/banner.c b/usr.bin/banner/banner.c
index 15a2952..e516f57 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,
OpenPOWER on IntegriCloud