[PATCH:libXScrnSaver] Don't declare a 'const char *' when you pass it to a 'char *'.

Thomas Klausner wiz at NetBSD.org
Sun Jun 2 11:56:37 PDT 2013


---
 src/XScrnSaver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/XScrnSaver.c b/src/XScrnSaver.c
index 2a89246..bf53c03 100644
--- a/src/XScrnSaver.c
+++ b/src/XScrnSaver.c
@@ -36,7 +36,7 @@ in this Software without prior written authorization from the X Consortium.
 
 static XExtensionInfo _screen_saver_info_data;
 static XExtensionInfo *screen_saver_info = &_screen_saver_info_data;
-static const char *screen_saver_extension_name = ScreenSaverName;
+static char *screen_saver_extension_name = ScreenSaverName;
 
 #define ScreenSaverCheckExtension(dpy,i,val) \
   XextCheckExtension (dpy, i, screen_saver_extension_name, val)
-- 
1.8.2.3



More information about the xorg-devel mailing list