mirror of
https://github.com/X11Libre/xf86-input-synaptics.git
synced 2026-04-14 11:54:16 +00:00
Whitespace fixes.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user