Whitespace fixes.

This commit is contained in:
Peter Osterlund
2004-07-30 20:19:32 +02:00
parent a8ea1ab150
commit 7e210b8b98
4 changed files with 6 additions and 6 deletions

View File

@@ -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);
}
}

View File

@@ -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;

View File

@@ -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;
}

View File

@@ -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);
}