aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2017-03-04 00:24:12 +0100
committerUlrich Sibiller <uli42@gmx.de>2017-03-10 19:44:22 +0100
commit914f78a23e91f9cb545e122c55c2381f47e3740c (patch)
treec0c468f5e0d8802e462169f3fcf8c18676cb93e4 /nx-X11/programs/Xserver
parente79d3ac6b168e55ffc43ab9afcc5fef35d94f780 (diff)
downloadnx-libs-914f78a23e91f9cb545e122c55c2381f47e3740c.tar.gz
nx-libs-914f78a23e91f9cb545e122c55c2381f47e3740c.tar.bz2
nx-libs-914f78a23e91f9cb545e122c55c2381f47e3740c.zip
xfixes: fix compiler warnings
cursor.c: In function ‘ProcXFixesGetCursorName’: cursor.c:399:6: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default] str = NameForAtom (pCursor->name); ^ cursor.c: In function ‘ProcXFixesGetCursorImageAndName’: cursor.c:453:10: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default] name = pCursor->name ? NameForAtom (pCursor->name) : ""; ^
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r--nx-X11/programs/Xserver/xfixes/cursor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/xfixes/cursor.c b/nx-X11/programs/Xserver/xfixes/cursor.c
index 67f46f55e..4e87fdd4a 100644
--- a/nx-X11/programs/Xserver/xfixes/cursor.c
+++ b/nx-X11/programs/Xserver/xfixes/cursor.c
@@ -390,7 +390,7 @@ ProcXFixesGetCursorName (ClientPtr client)
CursorPtr pCursor;
xXFixesGetCursorNameReply reply;
REQUEST(xXFixesGetCursorNameReq);
- char *str;
+ const char *str;
int len;
REQUEST_SIZE_MATCH(xXFixesGetCursorNameReq);
@@ -437,7 +437,7 @@ ProcXFixesGetCursorImageAndName (ClientPtr client)
CursorPtr pCursor;
CARD32 *image;
int npixels;
- char *name;
+ const char *name;
int nbytes, nbytesRound;
int width, height;
int x, y;