From 36a4a6f58b95ce244741df939cccef4733d80b03 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 15 Feb 2007 19:06:14 -0800 Subject: Clear sparse warnings & error Xinerama.c:56:5: warning: incorrect type in initializer (incompatible argument 1 (different types)) Xinerama.c:68:8: error: symbol 'close_display' redeclared with different type (originally declared at Xinerama.c:48) - incompatible argument 1 (different types) Xinerama.c:283:5: warning: Using plain integer as NULL pointer --- src/Xinerama.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Xinerama.c b/src/Xinerama.c index 43084b2..8da4dcf 100644 --- a/src/Xinerama.c +++ b/src/Xinerama.c @@ -45,7 +45,8 @@ static /* const */ char *panoramiX_extension_name = PANORAMIX_PROTOCOL_NAME; #define PanoramiXSimpleCheckExtension(dpy,i) \ XextSimpleCheckExtension (dpy, i, panoramiX_extension_name) -static int close_display(); +static int close_display(Display *dpy, XExtCodes *codes); + static /* const */ XExtensionHooks panoramiX_extension_hooks = { NULL, /* create_gc */ NULL, /* copy_gc */ @@ -279,7 +280,7 @@ XineramaQueryScreens( xXineramaQueryScreensReq *req; XineramaScreenInfo *scrnInfo = NULL; - PanoramiXCheckExtension (dpy, info, 0); + PanoramiXCheckExtension (dpy, info, NULL); LockDisplay (dpy); GetReq (XineramaQueryScreens, req); -- cgit v1.2.1