summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2007-02-15 19:06:14 -0800
committerAlan Coopersmith <alan.coopersmith@sun.com>2007-02-15 19:06:14 -0800
commit36a4a6f58b95ce244741df939cccef4733d80b03 (patch)
tree20ab3177e5b953e9c8d6b9f5c6866f0e7eeefd56
parentc98be137c711235fe5bff430e93222d2a47b5e6a (diff)
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
-rw-r--r--src/Xinerama.c5
1 files 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);