Skip to content

Commit

Permalink
Make some string literals "const char *", not "char *" (thanks, Marti…
Browse files Browse the repository at this point in the history
…n!).

Fixes Bugzilla #3007.
  • Loading branch information
icculus committed Jun 12, 2015
1 parent f29de0d commit 7146874
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/linux/SDL_evdev.c
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/core/linux/SDL_udev.c
Expand Up @@ -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;
Expand Down

0 comments on commit 7146874

Please sign in to comment.