Date: Mon, 22 Mar 1999 21:45:23 -0500 (EST) From: sjr@home.net To: FreeBSD-gnats-submit@freebsd.org Subject: bin/10739: Patch to banner to use const Message-ID: <199903230245.VAA02672@istari.home.net>
next in thread | raw e-mail | index | archive | help
>Number: 10739 >Category: bin >Synopsis: Patch to banner to use const >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 22 18:50:00 PST 1999 >Closed-Date: >Last-Modified: >Originator: Stephen J. Roznowski >Release: FreeBSD 4.0-CURRENT i386 >Organization: >Environment: >Description: This was part of the "games" patches from NetBSD. The appended patch makes banner(6) use `const' where appropriate. (http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=6151) >How-To-Repeat: >Fix: diff -u banner/banner.c banner+fix/banner.c --- banner/banner.c Mon Mar 22 21:38:40 1999 +++ banner+fix/banner.c Mon Mar 22 21:39:58 1999 @@ -58,7 +58,7 @@ #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 @@ * 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, >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903230245.VAA02672>