diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-29 17:40:24 -0200 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-29 17:40:24 -0200 |
commit | 9784df5ba9f04163da7486c005eaf2383c37b127 (patch) | |
tree | 2f9975b894b75322ecbc93ca6bdb752fde17eb30 /src/Cursor.c | |
parent | 839ef4a38dceec053c3fb33878e59eb26bd8d580 (diff) |
Janitor: Correct make distcheck and gcc/sparse warnings.
Diffstat (limited to 'src/Cursor.c')
-rw-r--r-- | src/Cursor.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Cursor.c b/src/Cursor.c index dac1f1c..5fd8efe 100644 --- a/src/Cursor.c +++ b/src/Cursor.c @@ -79,7 +79,7 @@ XFixesGetCursorImage (Display *dpy) XFixesCursorImage *image; char *name; - XFixesCheckExtension (dpy, info, 0); + XFixesCheckExtension (dpy, info, NULL); LockDisplay (dpy); GetReq (XFixesGetCursorImageAndName, req); req->reqType = info->codes->major_opcode; @@ -91,7 +91,7 @@ XFixesGetCursorImage (Display *dpy) { UnlockDisplay (dpy); SyncHandle (); - return 0; + return NULL; } if (info->major_version < 2) { @@ -115,7 +115,7 @@ XFixesGetCursorImage (Display *dpy) _XEatData (dpy, nbytes); UnlockDisplay (dpy); SyncHandle (); - return 0; + return NULL; } image->x = rep.x; image->y = rep.y; @@ -171,9 +171,9 @@ XFixesGetCursorName (Display *dpy, Cursor cursor, Atom *atom) xXFixesGetCursorNameReply rep; char *name; - XFixesCheckExtension (dpy, info, 0); + XFixesCheckExtension (dpy, info, NULL); if (info->major_version < 2) - return 0; + return NULL; LockDisplay (dpy); GetReq (XFixesGetCursorName, req); req->reqType = info->codes->major_opcode; @@ -183,7 +183,7 @@ XFixesGetCursorName (Display *dpy, Cursor cursor, Atom *atom) { UnlockDisplay (dpy); SyncHandle (); - return 0; + return NULL; } *atom = rep.atom; if ((name = (char *) Xmalloc(rep.nbytes+1))) { |