From 973b16b463db55cda4ee2c67d562a34ff1088cbb Mon Sep 17 00:00:00 2001 From: Arvid Norlander Date: Tue, 18 Nov 2008 14:16:41 -0500 Subject: [PATCH] Make ick_clc_cset_* const char* instead of char*. --- src/bin2c.c | 2 +- src/clc-cset.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/bin2c.c b/src/bin2c.c index e866cd7..6300697 100644 --- a/src/bin2c.c +++ b/src/bin2c.c @@ -34,7 +34,7 @@ int main(int argc, char** argv) } (void) puts("/* This file is automatically generated; to modify it,"); (void) puts(" modify the source file, not this file. */"); - printf("char* %s=\"\\\n",argv[1]); + printf("const char* %s=\"\\\n",argv[1]); colno=0; while((c=getchar())!=EOF) { diff --git a/src/clc-cset.c b/src/clc-cset.c index 5807438..551cc37 100644 --- a/src/clc-cset.c +++ b/src/clc-cset.c @@ -56,12 +56,12 @@ LICENSE TERMS * rather than reading them from disk; in this case, these extern * variables will be set non-null by object files invented * specifically for the purpose. */ -extern /*@null@*/ char* ick_clc_cset_atari; -extern /*@null@*/ char* ick_clc_cset_baudot; -extern /*@null@*/ char* ick_clc_cset_ebcdic; -extern /*@null@*/ char* ick_clc_cset_latin1; +extern /*@null@*/ const char* ick_clc_cset_atari; +extern /*@null@*/ const char* ick_clc_cset_baudot; +extern /*@null@*/ const char* ick_clc_cset_ebcdic; +extern /*@null@*/ const char* ick_clc_cset_latin1; -static /*@null@*/ char* ick_clc_cset_ptr=0; +static /*@null@*/ const char* ick_clc_cset_ptr=0; /* Fake that we're reading hardcoded characters from a file. This * method of doing it is obviously not thread-safe. */ -- 2.43.0