From 58ec53e44bb2b00bc104324a0f32e19dcab2ad34 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Tue, 16 Jul 2019 04:34:18 -0400 Subject: constify deftwmrc[], to fix gcc-stricter warnings Signed-off-by: Thomas E. Dickey --- src/Makefile.am | 4 ++-- src/deftwmrc.sed | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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/$/",/ -- cgit v1.2.3