Mercurial > mplayer.hg
diff gui/win32/wincfg.c @ 34596:04feb00f91be
Prefer static const char arrays for string constants to #defines.
author | ib |
---|---|
date | Fri, 10 Feb 2012 15:40:53 +0000 |
parents | 97bf974e7623 |
children | fb13b4e8eeb4 |
line wrap: on
line diff
--- a/gui/win32/wincfg.c Fri Feb 10 15:24:27 2012 +0000 +++ b/gui/win32/wincfg.c Fri Feb 10 15:40:53 2012 +0000 @@ -38,7 +38,7 @@ #include "gui/interface.h" #include "gui.h" -#define GUI_CONFIGURATION "gui.conf" +static const char gui_configuration[] = "gui.conf"; /* params */ int gtkAONorm = 0; @@ -97,7 +97,7 @@ void cfg_read(void) { - char *cfg = get_path(GUI_CONFIGURATION); + char *cfg = get_path(gui_configuration); player_idle_mode = 1; // GUI is in idle mode by default @@ -112,7 +112,7 @@ void cfg_write(void) { - char *cfg = get_path(GUI_CONFIGURATION); + char *cfg = get_path(gui_configuration); FILE *f; int i;