diff --git a/CONTRIBUTORS b/CONTRIBUTORS index cf970bce..d90fae61 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -1431,6 +1431,7 @@ Darren Salt for suggesting to write grabbed images to the SVDRP connection encoded in base64 for suggesting to open the file handle in the SVDRP GRAB command in a way that it won't follow symbolic links, and to canonicalize the file name + for making all font and image data 'const' Sean Carlos for translating OSD texts to the Italian language diff --git a/HISTORY b/HISTORY index b3fd9141..e9c116eb 100644 --- a/HISTORY +++ b/HISTORY @@ -4311,3 +4311,4 @@ Video Disk Recorder Revision History (thanks to Rolf Ahrenberg). - Renamed the Makefile target 'plugins-clean' to 'clean-plugins' (suggested by Sebastian Frei). +- Made all font and image data 'const' (thanks to Darren Salt). diff --git a/font.c b/font.c index 6269f2b5..87440d28 100644 --- a/font.c +++ b/font.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: font.c 1.11 2005/01/14 13:25:35 kls Exp $ + * $Id: font.c 1.12 2006/02/05 13:49:10 kls Exp $ */ #include "config.h" @@ -35,9 +35,10 @@ #include "fontfix-iso8859-15.c" #include "fontosd-iso8859-15.c" #include "fontsml-iso8859-15.c" + // --- cFont ----------------------------------------------------------------- -static void *FontData[eDvbCodeSize][eDvbFontSize] = { +static const void *const FontData[eDvbCodeSize][eDvbFontSize] = { { FontOsd_iso8859_1, FontFix_iso8859_1, FontSml_iso8859_1 }, { FontOsd_iso8859_2, FontFix_iso8859_2, FontSml_iso8859_2 }, { FontOsd_iso8859_5, FontFix_iso8859_5, FontSml_iso8859_5 }, @@ -58,12 +59,12 @@ static const char *FontCode[eDvbCodeSize] = { eDvbCode cFont::code = code_iso8859_1; cFont *cFont::fonts[eDvbFontSize] = { NULL }; -cFont::cFont(void *Data) +cFont::cFont(const void *Data) { SetData(Data); } -void cFont::SetData(void *Data) +void cFont::SetData(const void *Data) { if (Data) { height = ((tCharData *)Data)->height; @@ -112,7 +113,7 @@ void cFont::SetCode(eDvbCode Code) } } -void cFont::SetFont(eDvbFont Font, void *Data) +void cFont::SetFont(eDvbFont Font, const void *Data) { delete fonts[Font]; fonts[Font] = new cFont(Data ? Data : FontData[code][Font]); diff --git a/font.h b/font.h index b5a21a3a..2a104294 100644 --- a/font.h +++ b/font.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: font.h 1.11 2005/03/19 15:51:19 kls Exp $ + * $Id: font.h 1.12 2006/02/05 13:46:36 kls Exp $ */ #ifndef __FONT_H @@ -43,9 +43,9 @@ private: const tCharData *data[NUMCHARS]; int height; public: - cFont(void *Data); + cFont(const void *Data); virtual ~cFont() {} - void SetData(void *Data); + void SetData(const void *Data); virtual int Width(unsigned char c) const { return data[c]->width; } ///< Returns the width of the given character. virtual int Width(const char *s) const; @@ -59,7 +59,7 @@ public: const tCharData *CharData(unsigned char c) const { return data[c]; } static bool SetCode(const char *Code); static void SetCode(eDvbCode Code); - static void SetFont(eDvbFont Font, void *Data = NULL); + static void SetFont(eDvbFont Font, const void *Data = NULL); static const cFont *GetFont(eDvbFont Font); }; diff --git a/fontfix-iso8859-1.c b/fontfix-iso8859-1.c index 9b806ca4..42a4c992 100644 --- a/fontfix-iso8859-1.c +++ b/fontfix-iso8859-1.c @@ -1,4 +1,4 @@ -cFont::tPixelData FontFix_iso8859_1[][28] = { +static const cFont::tPixelData FontFix_iso8859_1[][28] = { { // 32 15, 26, 0x00000000, // ............... diff --git a/fontfix-iso8859-13.c b/fontfix-iso8859-13.c index f6b3abea..f42be8dd 100644 --- a/fontfix-iso8859-13.c +++ b/fontfix-iso8859-13.c @@ -1,4 +1,4 @@ -cFont::tPixelData FontFix_iso8859_13[][28] = { +static const cFont::tPixelData FontFix_iso8859_13[][28] = { { // 32 15, 26, 0x00000000, // ............... diff --git a/fontfix-iso8859-15.c b/fontfix-iso8859-15.c index 25a1efa9..c4c5aa07 100644 --- a/fontfix-iso8859-15.c +++ b/fontfix-iso8859-15.c @@ -1,4 +1,4 @@ -cFont::tPixelData FontFix_iso8859_15[][28] = { +static const cFont::tPixelData FontFix_iso8859_15[][28] = { { // 32 15, 26, 0x00000000, // ............... diff --git a/fontfix-iso8859-2.c b/fontfix-iso8859-2.c index e27bbdff..c5862d71 100644 --- a/fontfix-iso8859-2.c +++ b/fontfix-iso8859-2.c @@ -1,4 +1,4 @@ -cFont::tPixelData FontFix_iso8859_2[][28] = { +static const cFont::tPixelData FontFix_iso8859_2[][28] = { { // 32 15, 26, 0x00000000, // ............... diff --git a/fontfix-iso8859-5.c b/fontfix-iso8859-5.c index e8cb4e5c..b9939c95 100644 --- a/fontfix-iso8859-5.c +++ b/fontfix-iso8859-5.c @@ -1,4 +1,4 @@ -cFont::tPixelData FontFix_iso8859_5[][26] = { +static const cFont::tPixelData FontFix_iso8859_5[][26] = { { // 32 15, 24, 0x00000000, // ............... diff --git a/fontfix-iso8859-7.c b/fontfix-iso8859-7.c index 5ba6da9a..3ef21c22 100644 --- a/fontfix-iso8859-7.c +++ b/fontfix-iso8859-7.c @@ -1,4 +1,4 @@ -cFont::tPixelData FontFix_iso8859_7[][26] = { +static const cFont::tPixelData FontFix_iso8859_7[][26] = { { // 32 11, 24, 0x00000000, // ........... diff --git a/fontosd-iso8859-1.c b/fontosd-iso8859-1.c index f2d2ced1..67e286d2 100644 --- a/fontosd-iso8859-1.c +++ b/fontosd-iso8859-1.c @@ -1,4 +1,4 @@ -cFont::tPixelData FontOsd_iso8859_1[][29] = { +static const cFont::tPixelData FontOsd_iso8859_1[][29] = { { // 32 6, 27, 0x00000000, // ...... diff --git a/fontosd-iso8859-13.c b/fontosd-iso8859-13.c index 1179ebab..29a5d789 100644 --- a/fontosd-iso8859-13.c +++ b/fontosd-iso8859-13.c @@ -1,4 +1,4 @@ -cFont::tPixelData FontOsd_iso8859_13[][29] = { +static const cFont::tPixelData FontOsd_iso8859_13[][29] = { { // 32 6, 27, 0x00000000, // ...... diff --git a/fontosd-iso8859-15.c b/fontosd-iso8859-15.c index ee2d3b5c..f3008b7e 100644 --- a/fontosd-iso8859-15.c +++ b/fontosd-iso8859-15.c @@ -1,4 +1,4 @@ -cFont::tPixelData FontOsd_iso8859_15[][29] = { +static const cFont::tPixelData FontOsd_iso8859_15[][29] = { { // 32 6, 27, 0x00000000, // ...... diff --git a/fontosd-iso8859-2.c b/fontosd-iso8859-2.c index e61e9a87..c5f66408 100644 --- a/fontosd-iso8859-2.c +++ b/fontosd-iso8859-2.c @@ -1,4 +1,3 @@ - /* * iso8859-2 modified iso8859-1 (Drazen Dupor 23.05.2004). * @@ -10,7 +9,7 @@ * */ -cFont::tPixelData FontOsd_iso8859_2[][29] = { +static const cFont::tPixelData FontOsd_iso8859_2[][29] = { { // 32 6, 27, 0x00000000, // ...... diff --git a/fontosd-iso8859-5.c b/fontosd-iso8859-5.c index a8de8fdf..d155a328 100644 --- a/fontosd-iso8859-5.c +++ b/fontosd-iso8859-5.c @@ -1,4 +1,4 @@ -cFont::tPixelData FontOsd_iso8859_5[][24] = { +static const cFont::tPixelData FontOsd_iso8859_5[][24] = { { // 32 6, 22, 0x00000000, // ...... diff --git a/fontosd-iso8859-7.c b/fontosd-iso8859-7.c index ef49b326..4fd47fbd 100644 --- a/fontosd-iso8859-7.c +++ b/fontosd-iso8859-7.c @@ -1,4 +1,4 @@ -cFont::tPixelData FontOsd_iso8859_7[][27] = { +static const cFont::tPixelData FontOsd_iso8859_7[][27] = { { // 32 12, 25, 0x00000000, // ............ diff --git a/fontsml-iso8859-1.c b/fontsml-iso8859-1.c index d9c80a0a..028d1521 100644 --- a/fontsml-iso8859-1.c +++ b/fontsml-iso8859-1.c @@ -1,4 +1,4 @@ -cFont::tPixelData FontSml_iso8859_1[][24] = { +static const cFont::tPixelData FontSml_iso8859_1[][24] = { { // 32 5, 22, 0x00000000, // ..... diff --git a/fontsml-iso8859-13.c b/fontsml-iso8859-13.c index 061b5cce..738816a7 100644 --- a/fontsml-iso8859-13.c +++ b/fontsml-iso8859-13.c @@ -1,4 +1,4 @@ -cFont::tPixelData FontSml_iso8859_13[][24] = { +static const cFont::tPixelData FontSml_iso8859_13[][24] = { { // 32 5, 22, 0x00000000, // ..... diff --git a/fontsml-iso8859-15.c b/fontsml-iso8859-15.c index 55776d2f..27333bd4 100644 --- a/fontsml-iso8859-15.c +++ b/fontsml-iso8859-15.c @@ -1,4 +1,4 @@ -cFont::tPixelData FontSml_iso8859_15[][24] = { +static const cFont::tPixelData FontSml_iso8859_15[][24] = { { // 32 5, 22, 0x00000000, // ..... diff --git a/fontsml-iso8859-2.c b/fontsml-iso8859-2.c index 9f09d3bb..af1d8a8b 100644 --- a/fontsml-iso8859-2.c +++ b/fontsml-iso8859-2.c @@ -1,4 +1,4 @@ -cFont::tPixelData FontSml_iso8859_2[][25] = { +static const cFont::tPixelData FontSml_iso8859_2[][25] = { { // 32 5, 23, 0x00000000, // ..... diff --git a/fontsml-iso8859-5.c b/fontsml-iso8859-5.c index f7b57d32..786b0703 100644 --- a/fontsml-iso8859-5.c +++ b/fontsml-iso8859-5.c @@ -1,4 +1,4 @@ -cFont::tPixelData FontSml_iso8859_5[][27] = { +static const cFont::tPixelData FontSml_iso8859_5[][27] = { { // 32 5, 25, 0x00000000, // ..... diff --git a/fontsml-iso8859-7.c b/fontsml-iso8859-7.c index cd8d6935..a95f8f10 100644 --- a/fontsml-iso8859-7.c +++ b/fontsml-iso8859-7.c @@ -1,4 +1,4 @@ -cFont::tPixelData FontSml_iso8859_7[][22] = { +static const cFont::tPixelData FontSml_iso8859_7[][22] = { { // 32 9, 20, 0x00000000, // ......... diff --git a/genfontfile.c b/genfontfile.c index 9189167e..9dc6bce4 100644 --- a/genfontfile.c +++ b/genfontfile.c @@ -371,7 +371,7 @@ main(int argc, char *argv[]) exit(1); } - printf("%s[][%d] = {\n", varname, fontinfo->max_ascent + fontinfo->max_descent + 2); + printf("static const %s[][%d] = {\n", varname, fontinfo->max_ascent + fontinfo->max_descent + 2); for (c = 32; c < 256; c++) { getMetric(fontinfo, c, &tgi); printGlyph(fontinfo, c); diff --git a/osd.c b/osd.c index 2ff9f2b2..e7dd9afc 100644 --- a/osd.c +++ b/osd.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: osd.c 1.65 2005/12/30 15:42:04 kls Exp $ + * $Id: osd.c 1.66 2006/02/05 13:46:37 kls Exp $ */ #include "osd.h" @@ -112,7 +112,7 @@ cBitmap::cBitmap(const char *FileName) LoadXpm(FileName); } -cBitmap::cBitmap(char *Xpm[]) +cBitmap::cBitmap(const char *const Xpm[]) { bitmap = NULL; x0 = 0; @@ -251,9 +251,9 @@ bool cBitmap::LoadXpm(const char *FileName) return Result; } -bool cBitmap::SetXpm(char *Xpm[], bool IgnoreNone) +bool cBitmap::SetXpm(const char *const Xpm[], bool IgnoreNone) { - char **p = Xpm; + const char *const *p = Xpm; int w, h, n, c; if (4 != sscanf(*p, "%d %d %d %d", &w, &h, &n, &c)) { esyslog("ERROR: faulty 'values' line in XPM: '%s'", *p); diff --git a/osd.h b/osd.h index 9156393e..d716df84 100644 --- a/osd.h +++ b/osd.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: osd.h 1.50 2005/12/18 12:56:21 kls Exp $ + * $Id: osd.h 1.51 2006/02/05 13:46:37 kls Exp $ */ #ifndef __OSD_H @@ -112,7 +112,7 @@ public: ///< this offset (unless specified otherwise). cBitmap(const char *FileName); ///< Creates a bitmap and loads an XPM image from the given file. - cBitmap(char *Xpm[]); + cBitmap(const char *const Xpm[]); ///< Creates a bitmap from the given XPM data. virtual ~cBitmap(); int X0(void) const { return x0; } @@ -140,7 +140,7 @@ public: bool LoadXpm(const char *FileName); ///< Calls SetXpm() with the data from the file FileName. ///< Returns true if the operation was successful. - bool SetXpm(char *Xpm[], bool IgnoreNone = false); + bool SetXpm(const char *const Xpm[], bool IgnoreNone = false); ///< Sets this bitmap to the given XPM data. Any previous bitmap or ///< palette data will be overwritten with the new data. ///< If IgnoreNone is true, a "none" color entry will be ignored. diff --git a/skinsttng.c b/skinsttng.c index 1e2d8cdc..dccfb584 100644 --- a/skinsttng.c +++ b/skinsttng.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: skinsttng.c 1.16 2006/01/01 14:38:14 kls Exp $ + * $Id: skinsttng.c 1.17 2006/02/05 13:46:37 kls Exp $ */ // Star Trek: The Next Generation® is a registered trademark of Paramount Pictures @@ -721,7 +721,7 @@ void cSkinSTTNGDisplayReplay::SetTitle(const char *Title) osd->DrawText(x3 + 5, y0, Title, Theme.Color(clrReplayTitle), frameColor, cFont::GetFont(fontSml), x4 - x3 - 5); } -static char **ReplaySymbols[2][2][5] = { +static const char *const *ReplaySymbols[2][2][5] = { { { pause_xpm, srew_xpm, srew1_xpm, srew2_xpm, srew3_xpm }, { pause_xpm, sfwd_xpm, sfwd1_xpm, sfwd2_xpm, sfwd3_xpm }, }, { { play_xpm, frew_xpm, frew1_xpm, frew2_xpm, frew3_xpm }, diff --git a/symbols/arrowdown.xpm b/symbols/arrowdown.xpm index a3f49cdf..8ef6b0aa 100644 --- a/symbols/arrowdown.xpm +++ b/symbols/arrowdown.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * arrowdown_xpm[] = { +static const char *const arrowdown_xpm[] = { "12 12 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/arrowup.xpm b/symbols/arrowup.xpm index a177b4a2..9ee2e6c0 100644 --- a/symbols/arrowup.xpm +++ b/symbols/arrowup.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * arrowup_xpm[] = { +static const char *const arrowup_xpm[] = { "12 12 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/audio.xpm b/symbols/audio.xpm index 26f7cabf..44021adc 100644 --- a/symbols/audio.xpm +++ b/symbols/audio.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * audio_xpm[] = { +static const char *const audio_xpm[] = { "27 18 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/audioleft.xpm b/symbols/audioleft.xpm index 3536c25a..8f683605 100644 --- a/symbols/audioleft.xpm +++ b/symbols/audioleft.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * audioleft_xpm[] = { +static const char *const audioleft_xpm[] = { "27 18 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/audioright.xpm b/symbols/audioright.xpm index fc03cd3d..b349792c 100644 --- a/symbols/audioright.xpm +++ b/symbols/audioright.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * audioright_xpm[] = { +static const char *const audioright_xpm[] = { "27 18 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/audiostereo.xpm b/symbols/audiostereo.xpm index fdd7b845..4c59a5eb 100644 --- a/symbols/audiostereo.xpm +++ b/symbols/audiostereo.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * audiostereo_xpm[] = { +static const char *const audiostereo_xpm[] = { "27 18 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/dolbydigital.xpm b/symbols/dolbydigital.xpm index e51709ea..432b4762 100644 --- a/symbols/dolbydigital.xpm +++ b/symbols/dolbydigital.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * dolbydigital_xpm[] = { +static const char *const dolbydigital_xpm[] = { "27 18 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/encrypted.xpm b/symbols/encrypted.xpm index f2ae082a..fc3178b0 100644 --- a/symbols/encrypted.xpm +++ b/symbols/encrypted.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * encrypted_xpm[] = { +static const char *const encrypted_xpm[] = { "27 18 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/ffwd.xpm b/symbols/ffwd.xpm index 7d1edc2c..fb393293 100644 --- a/symbols/ffwd.xpm +++ b/symbols/ffwd.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * ffwd_xpm[] = { +static const char *const ffwd_xpm[] = { "28 26 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/ffwd1.xpm b/symbols/ffwd1.xpm index f78db80c..4b81436b 100644 --- a/symbols/ffwd1.xpm +++ b/symbols/ffwd1.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * ffwd1_xpm[] = { +static const char *const ffwd1_xpm[] = { "28 26 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/ffwd2.xpm b/symbols/ffwd2.xpm index f117fc25..19e62d17 100644 --- a/symbols/ffwd2.xpm +++ b/symbols/ffwd2.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * ffwd2_xpm[] = { +static const char *const ffwd2_xpm[] = { "28 26 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/ffwd3.xpm b/symbols/ffwd3.xpm index 8b9e9b0d..2bc65bdb 100644 --- a/symbols/ffwd3.xpm +++ b/symbols/ffwd3.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * ffwd3_xpm[] = { +static const char *const ffwd3_xpm[] = { "28 26 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/frew.xpm b/symbols/frew.xpm index d8a6c474..3583735f 100644 --- a/symbols/frew.xpm +++ b/symbols/frew.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * frew_xpm[] = { +static const char *const frew_xpm[] = { "28 26 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/frew1.xpm b/symbols/frew1.xpm index 493c229d..4aab7923 100644 --- a/symbols/frew1.xpm +++ b/symbols/frew1.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * frew1_xpm[] = { +static const char *const frew1_xpm[] = { "28 26 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/frew2.xpm b/symbols/frew2.xpm index 81fc0ee6..707edfce 100644 --- a/symbols/frew2.xpm +++ b/symbols/frew2.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * frew2_xpm[] = { +static const char *const frew2_xpm[] = { "28 26 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/frew3.xpm b/symbols/frew3.xpm index 19b183cd..95a3d153 100644 --- a/symbols/frew3.xpm +++ b/symbols/frew3.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * frew3_xpm[] = { +static const char *const frew3_xpm[] = { "28 26 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/mute.xpm b/symbols/mute.xpm index 0f1292f5..90fb79cc 100644 --- a/symbols/mute.xpm +++ b/symbols/mute.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * mute_xpm[] = { +static const char *const mute_xpm[] = { "26 20 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/pause.xpm b/symbols/pause.xpm index c1d82c32..945b7940 100644 --- a/symbols/pause.xpm +++ b/symbols/pause.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * pause_xpm[] = { +static const char *const pause_xpm[] = { "28 26 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/play.xpm b/symbols/play.xpm index 0e088f86..ca27fa32 100644 --- a/symbols/play.xpm +++ b/symbols/play.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * play_xpm[] = { +static const char *const play_xpm[] = { "28 26 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/radio.xpm b/symbols/radio.xpm index f4d1fc93..a14b0a9d 100644 --- a/symbols/radio.xpm +++ b/symbols/radio.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * radio_xpm[] = { +static const char *const radio_xpm[] = { "27 18 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/recording.xpm b/symbols/recording.xpm index ea7bbd6d..155df615 100644 --- a/symbols/recording.xpm +++ b/symbols/recording.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * recording_xpm[] = { +static const char *const recording_xpm[] = { "27 18 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/sfwd.xpm b/symbols/sfwd.xpm index 38468e5d..e79c69ba 100644 --- a/symbols/sfwd.xpm +++ b/symbols/sfwd.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * sfwd_xpm[] = { +static const char *const sfwd_xpm[] = { "28 26 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/sfwd1.xpm b/symbols/sfwd1.xpm index f07801b0..67cf6ce3 100644 --- a/symbols/sfwd1.xpm +++ b/symbols/sfwd1.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * sfwd1_xpm[] = { +static const char *const sfwd1_xpm[] = { "28 26 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/sfwd2.xpm b/symbols/sfwd2.xpm index 784744a1..a90bb92e 100644 --- a/symbols/sfwd2.xpm +++ b/symbols/sfwd2.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * sfwd2_xpm[] = { +static const char *const sfwd2_xpm[] = { "28 26 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/sfwd3.xpm b/symbols/sfwd3.xpm index 05abde6b..e03965cf 100644 --- a/symbols/sfwd3.xpm +++ b/symbols/sfwd3.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * sfwd3_xpm[] = { +static const char *const sfwd3_xpm[] = { "28 26 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/srew.xpm b/symbols/srew.xpm index 4dbae7e5..05b9dc15 100644 --- a/symbols/srew.xpm +++ b/symbols/srew.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * srew_xpm[] = { +static const char *const srew_xpm[] = { "28 26 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/srew1.xpm b/symbols/srew1.xpm index 101cdf73..43de690f 100644 --- a/symbols/srew1.xpm +++ b/symbols/srew1.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * srew1_xpm[] = { +static const char *const srew1_xpm[] = { "28 26 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/srew2.xpm b/symbols/srew2.xpm index f664532b..f06a1e39 100644 --- a/symbols/srew2.xpm +++ b/symbols/srew2.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * srew2_xpm[] = { +static const char *const srew2_xpm[] = { "28 26 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/srew3.xpm b/symbols/srew3.xpm index b82a6c72..b8819804 100644 --- a/symbols/srew3.xpm +++ b/symbols/srew3.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * srew3_xpm[] = { +static const char *const srew3_xpm[] = { "28 26 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/teletext.xpm b/symbols/teletext.xpm index 49fc3c24..345ab9ed 100644 --- a/symbols/teletext.xpm +++ b/symbols/teletext.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * teletext_xpm[] = { +static const char *const teletext_xpm[] = { "27 18 2 1", ". c #FFFFFF", "+ c #000000", diff --git a/symbols/volume.xpm b/symbols/volume.xpm index 9cbc0b25..c6186fee 100644 --- a/symbols/volume.xpm +++ b/symbols/volume.xpm @@ -1,5 +1,5 @@ /* XPM */ -static char * volume_xpm[] = { +static const char *const volume_xpm[] = { "28 14 2 1", ". c #FFFFFF", "+ c #000000",