summaryrefslogtreecommitdiff
path: root/src/xlib.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2006-10-10 14:57:16 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2006-10-10 14:57:16 -0700
commit9df9640643fae7b922b18ee219d6d9694345df14 (patch)
treec7b881680d3ef06343abe05385d497e5827e89b5 /src/xlib.c
parentb6b9f5885566e4c2df8e3319fe092c22f319983f (diff)
Fix many sparse warnings: Using plain integer as NULL pointer
Diffstat (limited to 'src/xlib.c')
-rw-r--r--src/xlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xlib.c b/src/xlib.c
index 765cf9d..d1809f9 100644
--- a/src/xlib.c
+++ b/src/xlib.c
@@ -179,7 +179,7 @@ _XcursorGetBitmap (Display *dpy, Pixmap bitmap)
info = _XcursorGetDisplayInfo (dpy);
if (!info)
- return 0;
+ return NULL;
LockDisplay (dpy);
for (i = 0; i < NUM_BITMAPS; i++)
if (info->bitmaps[i].bitmap == bitmap)
@@ -189,7 +189,7 @@ _XcursorGetBitmap (Display *dpy, Pixmap bitmap)
return &info->bitmaps[i];
}
UnlockDisplay (dpy);
- return 0;
+ return NULL;
}
static Bool