diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/acecad.c | 3 | ||||
-rw-r--r-- | src/acecad.h | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/acecad.c b/src/acecad.c index 41caa8c..71d2578 100644 --- a/src/acecad.c +++ b/src/acecad.c @@ -245,10 +245,9 @@ AceCadAutoDevProbe(LocalDevicePtr local, int verb) char *link = NULL; struct dlist *devs = NULL; struct dlist *links = NULL; - unsigned int major = 0, minor = 0; void *libsysfs = NULL; - if (libsysfs = dlopen("libsysfs.so", RTLD_NOW | RTLD_GLOBAL)) { + if ((libsysfs = dlopen("libsysfs.so", RTLD_NOW | RTLD_GLOBAL))) { xf86MsgVerb(X_INFO, verb, "%s: querying sysfs for Acecad tablets\n", local->name); usb_bus = sysfs_open_bus(usb_bus_name); if (usb_bus) { diff --git a/src/acecad.h b/src/acecad.h index 2f910ea..9acfca2 100644 --- a/src/acecad.h +++ b/src/acecad.h @@ -63,7 +63,7 @@ #define NOTAVAIL ((errno == ENODEV) || (errno == ENXIO) || (errno == ENOENT)) -#define milisleep(ms) xf86usleep (ms * 1000) +#define milisleep(ms) usleep (ms * 1000) #define SYSCALL(call) while(((call) == -1) && (errno == EINTR)) |