From 91f465babd46f1b39c6f5665e38e4aab58fc921b Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 19 Mar 2007 19:23:33 -0700 Subject: Clear sparse warning: Using plain integer as NULL pointer --- xdpyinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3