diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2019-07-16 04:34:18 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2019-07-16 05:19:34 -0400 |
commit | 99bad1baa20fafb47aa07925b3960b003aa160df (patch) | |
tree | df7face0b8e0f22f26560212037564285be29886 | |
parent | 43e36f1b95c40966c6e6e3ae4acd5c2974b1cc53 (diff) |
constify deftwmrc[], to fix gcc-stricter warnings
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
-rw-r--r-- | src/Makefile.am | 4 | ||||
-rw-r--r-- | src/deftwmrc.sed | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index ba9c7b9..1f46e09 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -77,8 +77,8 @@ deftwmrc.c: system.twmrc echo ' * twm bindings file system.twmrc by the twm Makefile.' >>$@ ; \ echo ' */' >>$@ ; \ echo '' >>$@ ; \ - echo 'unsigned char *defTwmrc[] = {' >>$@ ; \ + echo 'const unsigned char *defTwmrc[] = {' >>$@ ; \ $(SED) -f ${srcdir}/deftwmrc.sed < ${srcdir}/system.twmrc >>$@ ; \ - echo ' (unsigned char *) 0 };' >>$@ + echo ' (const unsigned char *) 0 };' >>$@ EXTRA_DIST = deftwmrc.sed siconify.bm diff --git a/src/deftwmrc.sed b/src/deftwmrc.sed index d26926a..30f8c27 100644 --- a/src/deftwmrc.sed +++ b/src/deftwmrc.sed @@ -1,4 +1,4 @@ /^#/d s/"/\\"/g -s/^/ (unsigned char *) "/ +s/^/ (const unsigned char *) "/ s/$/",/ |