From fbf78d2f8f0c4a2ec8c5c788d89eca86333ee33a Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 8 Dec 2021 10:54:09 +1030 Subject: [PATCH] Fix const qualifiers for read-only data tables --- src/notzed.zcl/jni/zcl-generate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; -- 2.39.5