summaryrefslogtreecommitdiff
path: root/src/display.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/display.c')
-rw-r--r--src/display.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/display.c b/src/display.c
index a2e685c..d3e2953 100644
--- a/src/display.c
+++ b/src/display.c
@@ -118,15 +118,15 @@ _XcursorGetDisplayInfo (Display *dpy)
return info;
info = (XcursorDisplayInfo *) malloc (sizeof (XcursorDisplayInfo));
if (!info)
- return 0;
- info->next = 0;
+ return NULL;
+ info->next = NULL;
info->display = dpy;
info->codes = XAddExtension (dpy);
if (!info->codes)
{
free (info);
- return 0;
+ return NULL;
}
(void) XESetCloseDisplay (dpy, info->codes->extension, _XcursorCloseDisplay);
@@ -200,8 +200,8 @@ _XcursorGetDisplayInfo (Display *dpy)
info->size = dim / 48;
}
- info->theme = 0;
- info->theme_from_config = 0;
+ info->theme = NULL;
+ info->theme_from_config = NULL;
/*
* Get the desired theme
@@ -258,7 +258,7 @@ _XcursorGetDisplayInfo (Display *dpy)
info->theme_core = i;
}
- info->fonts = 0;
+ info->fonts = NULL;
for (i = 0; i < NUM_BITMAPS; i++)
info->bitmaps[i].bitmap = None;
@@ -343,7 +343,7 @@ XcursorSetTheme (Display *dpy, const char *theme)
strcpy (copy, theme);
}
else
- copy = 0;
+ copy = NULL;
if (info->theme)
free (info->theme);
info->theme = copy;
@@ -356,7 +356,7 @@ XcursorGetTheme (Display *dpy)
XcursorDisplayInfo *info = _XcursorGetDisplayInfo (dpy);
if (!info)
- return 0;
+ return NULL;
return info->theme;
}