summaryrefslogtreecommitdiff
path: root/tools/synclient.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-02-27 10:03:12 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-02-27 10:04:01 +1000
commit24ae6192bfbf67ec0a112b8a0cbb3925df58a5b8 (patch)
treed8487408d9777c9508dfca2c1e4f1a6b044461d6 /tools/synclient.c
parenta67a0217ce13865735488ccc77443e7ba7ddca30 (diff)
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 <peter.hutterer@who-t.net>
Diffstat (limited to 'tools/synclient.c')
-rw-r--r--tools/synclient.c6
1 files changed, 3 insertions, 3 deletions
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: