From: Not Zed Date: Wed, 8 Dec 2021 00:24:09 +0000 (+1030) Subject: Fix const qualifiers for read-only data tables X-Git-Url: https://code.zedzone.au/cvs?a=commitdiff_plain;h=fbf78d2f8f0c4a2ec8c5c788d89eca86333ee33a;p=zcl Fix const qualifiers for read-only data tables --- diff --git a/src/notzed.zcl/jni/zcl-generate b/src/notzed.zcl/jni/zcl-generate index fc0de43..a5ffa3d 100755 --- a/src/notzed.zcl/jni/zcl-generate +++ b/src/notzed.zcl/jni/zcl-generate @@ -64,7 +64,7 @@ print "#define zcl_fn_SIZEOF ".($#fn + 1)."\n"; print "#ifdef ZCL_DL_TABLE\n"; print "// Entry point names\n"; -print "const char const * zcl_fn[] = {\n"; +print "const char * const zcl_fn[] = {\n"; for $f (@fn) { print "\t\"$f\",\n"; } @@ -73,7 +73,7 @@ print "// Entry point addresses\n"; print "const void *zcl_fp[zcl_fn_SIZEOF];\n"; print "#else\n"; print "// Entry point names\n"; -print "extern const char const * zcl_fn[zcl_fn_SIZEOF];\n"; +print "extern const char * const zcl_fn[zcl_fn_SIZEOF];\n"; print "// Entry point addresses\n"; print "extern const void *zcl_fp[zcl_fn_SIZEOF];\n"; print "#endif\n";