From 714687427a2fa474885cd11beb1bc296ea0305a9 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 12 Jun 2015 11:58:31 -0400 Subject: [PATCH] Make some string literals "const char *", not "char *" (thanks, Martin!). Fixes Bugzilla #3007. --- src/core/linux/SDL_evdev.c | 2 +- src/core/linux/SDL_udev.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/linux/SDL_evdev.c b/src/core/linux/SDL_evdev.c index a11f86f14..ff93d6e4c 100644 --- a/src/core/linux/SDL_evdev.c +++ b/src/core/linux/SDL_evdev.c @@ -341,7 +341,7 @@ static Uint8 EVDEV_MouseButtons[] = { SDL_BUTTON_X2 + 3 /* BTN_TASK 0x117 */ }; -static char* EVDEV_consoles[] = { +static const char* EVDEV_consoles[] = { "/proc/self/fd/0", "/dev/tty", "/dev/tty0", diff --git a/src/core/linux/SDL_udev.c b/src/core/linux/SDL_udev.c index 24e187c5a..cf66331e7 100644 --- a/src/core/linux/SDL_udev.c +++ b/src/core/linux/SDL_udev.c @@ -33,7 +33,7 @@ #include "SDL.h" -static char* SDL_UDEV_LIBS[] = { "libudev.so.1", "libudev.so.0" }; +static const char* SDL_UDEV_LIBS[] = { "libudev.so.1", "libudev.so.0" }; #define _THIS SDL_UDEV_PrivateData *_this static _THIS = NULL;