From f766a2baaec283eabcfa26f0c60e9a596b43459d Mon Sep 17 00:00:00 2001 From: oga Date: Fri, 23 Jan 2009 18:58:40 +0000 Subject: Move the keybinding argument to a union to prevent warnings where sizeof(int) != sizeof(void *). This has been annoying me for ages. ok okan@, todd@ --- xevents.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xevents.c') diff --git a/xevents.c b/xevents.c index d1a34d4..3e8a336 100644 --- a/xevents.c +++ b/xevents.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: xevents.c,v 1.37 2009/01/22 19:01:56 okan Exp $ + * $Id: xevents.c,v 1.38 2009/01/23 18:58:40 oga Exp $ */ /* @@ -294,7 +294,7 @@ xev_handle_keypress(struct xevent *xev, XEvent *ee) if (kb->flags & KBFLAG_NEEDCLIENT) goto out; - (*kb->callback)(cc, kb->argument); + (*kb->callback)(cc, &kb->argument); out: xev_register(xev); -- cgit v1.2.3-2-gb3c3