From 607c11e20aca5c9f13d5e6ab80153b10c249162b Mon Sep 17 00:00:00 2001 From: marha Date: Fri, 20 Nov 2009 14:43:52 +0000 Subject: Removed compile warnings. --- xorg-server/hw/xwin/winerror.c | 2 +- xorg-server/hw/xwin/winglobals.c | 4 ++-- xorg-server/hw/xwin/winprocarg.c | 2 +- xorg-server/hw/xwin/winshaddd.c | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'xorg-server/hw') diff --git a/xorg-server/hw/xwin/winerror.c b/xorg-server/hw/xwin/winerror.c index 78ac15117..dacee38f5 100644 --- a/xorg-server/hw/xwin/winerror.c +++ b/xorg-server/hw/xwin/winerror.c @@ -41,7 +41,7 @@ /* References to external symbols */ extern char * g_pszCommandLine; -extern char * g_pszLogFile; +extern const char * g_pszLogFile; extern Bool g_fSilentFatalError; extern Bool g_fSilentDupError; extern Bool g_fLogInited; diff --git a/xorg-server/hw/xwin/winglobals.c b/xorg-server/hw/xwin/winglobals.c index 27635cf05..768eeb8fa 100644 --- a/xorg-server/hw/xwin/winglobals.c +++ b/xorg-server/hw/xwin/winglobals.c @@ -69,9 +69,9 @@ Bool g_fAuthEnabled = FALSE; HICON g_hIconX = NULL; HICON g_hSmallIconX = NULL; #ifndef RELOCATE_PROJECTROOT -char * g_pszLogFile = DEFAULT_LOGDIR "/XWin.%s.log"; +const char * g_pszLogFile = DEFAULT_LOGDIR "/XWin.%s.log"; #else -char * g_pszLogFile = "XWin.log"; +const char * g_pszLogFile = "XWin.log"; Bool g_fLogFileChanged = FALSE; #endif int g_iLogVerbose = 2; diff --git a/xorg-server/hw/xwin/winprocarg.c b/xorg-server/hw/xwin/winprocarg.c index 40fb41e8e..6db6ad4a3 100644 --- a/xorg-server/hw/xwin/winprocarg.c +++ b/xorg-server/hw/xwin/winprocarg.c @@ -54,7 +54,7 @@ extern Bool g_fUnicodeClipboard; extern Bool g_fClipboard; #endif extern int g_iLogVerbose; -extern char * g_pszLogFile; +extern const char * g_pszLogFile; #ifdef RELOCATE_PROJECTROOT extern Bool g_fLogFileChanged; #endif diff --git a/xorg-server/hw/xwin/winshaddd.c b/xorg-server/hw/xwin/winshaddd.c index e1501c6c2..0ef4bd432 100644 --- a/xorg-server/hw/xwin/winshaddd.c +++ b/xorg-server/hw/xwin/winshaddd.c @@ -42,7 +42,7 @@ */ extern HWND g_hDlgExit; -extern char *g_pszLogFile; +extern const char *g_pszLogFile; /* * FIXME: Headers are broken, DEFINE_GUID doesn't work correctly, @@ -628,7 +628,7 @@ winShadowUpdateDD (ScreenPtr pScreen, /* Has our memory pointer changed? */ if (pScreenInfo->pfb != pScreenPriv->pddsdShadow->lpSurface) { - extern char *g_pszLogFile; + extern const char *g_pszLogFile; ErrorF ("winShadowUpdateDD - Memory location of the shadow " "surface has changed, trying to update the root window " "pixmap header to point to the new address. If you get " -- cgit v1.2.3