summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2007-03-19 19:23:33 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2007-03-19 19:23:33 -0700
commit91f465babd46f1b39c6f5665e38e4aab58fc921b (patch)
tree3dc8b72d91bd3bbe8d698884970c6e90934b5a73
parent6a26c41570f1b91f14508cf3d44f4ed3c51127bd (diff)
Clear sparse warning: Using plain integer as NULL pointer
-rw-r--r--xdpyinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xdpyinfo.c b/xdpyinfo.c
index b682058..c37d7e8 100644
--- a/xdpyinfo.c
+++ b/xdpyinfo.c
@@ -1049,7 +1049,7 @@ print_xrender_info(Display *dpy, char *extname)
XFreeExtensionList(extensions);
if (loop != num_extensions) {
printf (" Render formats :\n");
- for (count = 0; (pictform = XRenderFindFormat (dpy, 0, 0, count)); count++)
+ for (count = 0; (pictform = XRenderFindFormat (dpy, 0, NULL, count)); count++)
{
printf (" pict format:\n");
printf ("\tformat id: 0x%lx\n", pictform->id);