summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2004-07-30 20:19:32 +0200
committerPeter Osterlund <petero2@telia.com>2006-04-09 04:02:44 +0200
commit7e210b8b981b01f4fe75c7bd4eef07881d3aa4d6 (patch)
tree9c402a4d2122fc814dc3097bfe0934b69fcac6e2
parenta8ea1ab150cd0359f2e1ccf7f7193dbee1e0d737 (diff)
Whitespace fixes.
-rw-r--r--alpscomm.c2
-rw-r--r--psmcomm.c2
-rw-r--r--synaptics.c2
-rw-r--r--synclient.c6
4 files changed, 6 insertions, 6 deletions
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);
}