diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-04-28 14:27:58 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-04-28 14:27:58 +0200 |
commit | 2b88cc3642a94a58e777d8a931f7bbe9f16e9b93 (patch) | |
tree | e7866d6886b807237d722eec6c27f89d8388ed4a /src | |
parent | 1d8e61f461fef959212d5a05cac70a590927ec20 (diff) |
More whitespace cleanup.
Diffstat (limited to 'src')
-rw-r--r-- | src/acecad.c | 28 | ||||
-rw-r--r-- | src/acecad.h | 4 |
2 files changed, 16 insertions, 16 deletions
diff --git a/src/acecad.c b/src/acecad.c index 79e8ccb..4685d68 100644 --- a/src/acecad.c +++ b/src/acecad.c @@ -176,12 +176,12 @@ IsUSBLine(int fd) SYSCALL(err = ioctl(fd, EVIOCGVERSION, &version)); if (!err) { - xf86MsgVerb(X_PROBED, 4, "Kernel Input driver version is %d.%d.%d\n", - version >> 16, (version >> 8) & 0xff, version & 0xff); - return 1; + xf86MsgVerb(X_PROBED, 4, "Kernel Input driver version is %d.%d.%d\n", + version >> 16, (version >> 8) & 0xff, version & 0xff); + return 1; } else { - xf86MsgVerb(X_PROBED, 4, "No Kernel Input driver found\n"); - return 0; + xf86MsgVerb(X_PROBED, 4, "No Kernel Input driver found\n"); + return 0; } } @@ -194,15 +194,15 @@ IsUSBLine(int fd) static Bool fd_query_acecad(int fd, char *ace_name) { - char name[256] = "Unknown"; - int cmp_at = strlen(ace_name); - if (cmp_at > 256) - cmp_at = 256; - ioctl(fd, EVIOCGNAME(sizeof(name)), name); - name[cmp_at] = '\0'; - if (xf86NameCmp(name, ace_name) == 0) - return TRUE; - return FALSE; + char name[256] = "Unknown"; + int cmp_at = strlen(ace_name); + if (cmp_at > 256) + cmp_at = 256; + ioctl(fd, EVIOCGNAME(sizeof(name)), name); + name[cmp_at] = '\0'; + if (xf86NameCmp(name, ace_name) == 0) + return TRUE; + return FALSE; } static char ace_name_default[7] = "acecad"; diff --git a/src/acecad.h b/src/acecad.h index cd94406..713e2d2 100644 --- a/src/acecad.h +++ b/src/acecad.h @@ -25,14 +25,14 @@ */ /* $XFree86: xc/programs/Xserver/hw/xfree86/input/acecad/acecad.h,v 1.2tsi Exp $ */ -#ifndef _ACECAD_H_ +#ifndef _ACECAD_H_ #define _ACECAD_H_ /****************************************************************************** * Definitions * structs, typedefs, #defines, enums *****************************************************************************/ -#define ACECAD_PACKET_SIZE 7 +#define ACECAD_PACKET_SIZE 7 #define ACECAD_CONFIG "a" /* Send configuration (max coords) */ |