Commit 914f78a2 authored by Ulrich Sibiller's avatar Ulrich Sibiller

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) : ""; ^
parent e79d3ac6
...@@ -390,7 +390,7 @@ ProcXFixesGetCursorName (ClientPtr client) ...@@ -390,7 +390,7 @@ ProcXFixesGetCursorName (ClientPtr client)
CursorPtr pCursor; CursorPtr pCursor;
xXFixesGetCursorNameReply reply; xXFixesGetCursorNameReply reply;
REQUEST(xXFixesGetCursorNameReq); REQUEST(xXFixesGetCursorNameReq);
char *str; const char *str;
int len; int len;
REQUEST_SIZE_MATCH(xXFixesGetCursorNameReq); REQUEST_SIZE_MATCH(xXFixesGetCursorNameReq);
...@@ -437,7 +437,7 @@ ProcXFixesGetCursorImageAndName (ClientPtr client) ...@@ -437,7 +437,7 @@ ProcXFixesGetCursorImageAndName (ClientPtr client)
CursorPtr pCursor; CursorPtr pCursor;
CARD32 *image; CARD32 *image;
int npixels; int npixels;
char *name; const char *name;
int nbytes, nbytesRound; int nbytes, nbytesRound;
int width, height; int width, height;
int x, y; int x, y;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment