From f0f0c92a08f0ccf5a7ac447d117eb0341fe136d6 Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Fri, 3 Oct 2014 14:00:06 +0100 Subject: [PATCH] hw/xwin: Fix const warning in winPrefsLoadPreferences() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit winprefs.c:643:14: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default] Signed-off-by: Jon TURNEY Reviewed-by: Colin Harrison --- hw/xwin/winprefs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xwin/winprefs.c b/hw/xwin/winprefs.c index 53abc163f..505292714 100644 --- a/hw/xwin/winprefs.c +++ b/hw/xwin/winprefs.c @@ -625,7 +625,7 @@ winIconIsOverride(HICON hicon) * If @path is NULL, use the built-in default. */ static int -winPrefsLoadPreferences(char *path) +winPrefsLoadPreferences(const char *path) { FILE *prefFile = NULL;