diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-05-23 22:04:52 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-05-23 22:04:52 -0700 |
commit | 8a8a30ce906cf6af7da54dccc88b04d49bd4c12b (patch) | |
tree | afad5183986a11f35504ca74f089401f83d8d34f | |
parent | 776e739b1690c7de11e50e2ae2a77d98bd69a3d6 (diff) |
Fix XpEventToWire arguments to match what libXext expects
Not that it appears to have ever been used, but this shuts up
several gcc warnings.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/XpExtUtil.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/XpExtUtil.c b/src/XpExtUtil.c index 8d8ee52..30540d0 100644 --- a/src/XpExtUtil.c +++ b/src/XpExtUtil.c @@ -55,7 +55,7 @@ static /* const */ char *xp_extension_name = XP_PRINTNAME; static int XpClose(Display *, XExtCodes *); static char *XpError(Display *, int, XExtCodes *, char *, int); static Bool XpWireToEvent(Display *, XEvent *, xEvent *); -static Status XpEventToWire(Display *, XEvent *, xEvent **, int *); +static Status XpEventToWire(Display *, XEvent *, xEvent *); #define XpCheckExtension(dpy,i,val) \ XextCheckExtension (dpy, i, xp_extension_name, val) @@ -282,8 +282,7 @@ static Status XpEventToWire( Display *dpy, /* pointer to display structure */ XEvent *re, /* pointer to client event */ - xEvent **event, /* wire protocol event */ - int *count) + xEvent *event) /* wire protocol event */ { XExtDisplayInfo *info = (XExtDisplayInfo *) xp_find_display (dpy); @@ -339,6 +338,6 @@ XpEventToWire( #endif /* PRINT_SomeEventExample2 */ default: - return(_XUnknownNativeEvent(dpy, re, *event)); + return(_XUnknownNativeEvent(dpy, re, event)); } } |