Use const where appropriate.
PR: 10739 Submitted by: Stephen J. Rosnowski <sjr@home.net> Obtained from: NetBSD PR 6151
This commit is contained in:
parent
d59a3ca336
commit
18d612c041
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user