From 24ae6192bfbf67ec0a112b8a0cbb3925df58a5b8 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 27 Feb 2009 10:03:12 +1000 Subject: synclient: Fix build errors - BOOL isn't always available. Hilarious include dependency resulted in BOOL being available on my box, but not boxes running released libraries/protocol headers. Replace BOOL with char. Signed-off-by: Peter Hutterer --- tools/synclient.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/synclient.c') diff --git a/tools/synclient.c b/tools/synclient.c index 38af4fa..143068c 100644 --- a/tools/synclient.c +++ b/tools/synclient.c @@ -525,7 +525,7 @@ dp_set_variables(Display *dpy, XDevice* dev, int argc, char *argv[], int first_c float *f; int *n; - BOOL *b; + char *b; float_type = XInternAtom(dpy, XATOM_FLOAT, True); if (!float_type) @@ -600,7 +600,7 @@ dp_show_settings(Display *dpy, XDevice *dev) float *f; int *i; - BOOL *b; + char *b; float_type = XInternAtom(dpy, XATOM_FLOAT, True); if (!float_type) @@ -630,7 +630,7 @@ dp_show_settings(Display *dpy, XDevice *dev) break; } - b = (BOOL*)data; + b = (char*)data; printf(" %-23s = %d\n", par->name, b[par->prop_offset]); break; case 32: -- cgit v1.2.3