diff --git a/alpscomm.c b/alpscomm.c index aa6d82b..01db0d7 100644 --- a/alpscomm.c +++ b/alpscomm.c @@ -30,7 +30,7 @@ static void ALPS_sync(int fd) { byte buffer[4]; - while(xf86WaitForInput(fd, 250000) > 0) { + while (xf86WaitForInput(fd, 250000) > 0) { xf86ReadSerial(fd, &buffer, 1); } } diff --git a/psmcomm.c b/psmcomm.c index 050cd63..d7b8844 100644 --- a/psmcomm.c +++ b/psmcomm.c @@ -44,7 +44,7 @@ static Bool psm_synaptics_identify(int fd, synapticshw_t *ident) { int ret; - + SYSCALL(ret = ioctl(fd, MOUSE_SYNGETHWINFO, ident)); if (ret == 0) return TRUE; diff --git a/synaptics.c b/synaptics.c index 4acfb31..8e26c23 100644 --- a/synaptics.c +++ b/synaptics.c @@ -578,7 +578,7 @@ static void relative_coords(SynapticsPrivate *priv, int x, int y, if ((maxX - xCenter > 0) && (maxY - yCenter > 0)) { *relX = (x - xCenter) / (maxX - xCenter); *relY = (y - yCenter) / (maxY - yCenter); - } else { + } else { *relX = 0; *relY = 0; } diff --git a/synclient.c b/synclient.c index a2cbe19..3b4105e 100644 --- a/synclient.c +++ b/synclient.c @@ -214,7 +214,7 @@ static void monitor(SynapticsSHM* synshm, int delay) memset(&old, 0, sizeof(SynapticsSHM)); old.x = -1; /* Force first equality test to fail */ - while(1) { + while (1) { SynapticsSHM cur = *synshm; if (!is_equal(&old, &cur)) { if (!header) { @@ -292,7 +292,7 @@ int main(int argc, char* argv[]) usage(); /* Connect to the shared memory area */ - if((shmid = shmget(SHM_SYNAPTICS, sizeof(SynapticsSHM), 0)) == -1) { + if ((shmid = shmget(SHM_SYNAPTICS, sizeof(SynapticsSHM), 0)) == -1) { if ((shmid = shmget(SHM_SYNAPTICS, 0, 0)) == -1) { fprintf(stderr, "Can't access shared memory area. SHMConfig disabled?\n"); exit(1); @@ -301,7 +301,7 @@ int main(int argc, char* argv[]) exit(1); } } - if((synshm = (SynapticsSHM*) shmat(shmid, NULL, 0)) == NULL) { + if ((synshm = (SynapticsSHM*) shmat(shmid, NULL, 0)) == NULL) { perror("shmat"); exit(1); }