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 04:34:18 -0400 |
commit | 58ec53e44bb2b00bc104324a0f32e19dcab2ad34 (patch) | |
tree | e8db0567eb7abefca2b9fb91215af24ef885cac4 /src | |
parent | 05814df9c0be77ff0168a22415e2282d093df5d5 (diff) |
constify deftwmrc[], to fix gcc-stricter warnings
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src')
-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/$/",/ |