Big cleanup: Remove trailing whitespace from files (except those imported
from external sources).
This commit is contained in:
@@ -109,7 +109,7 @@ joy_init (Driver *drvthis)
|
||||
/* End of config file parsing (1st part) */
|
||||
|
||||
if ((p->fd = open(p->device, O_RDONLY)) < 0) {
|
||||
report(RPT_ERR, "%s: open(%s) failed (%s)",
|
||||
report(RPT_ERR, "%s: open(%s) failed (%s)",
|
||||
drvthis->name, p->device, strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
@@ -147,7 +147,7 @@ joy_init (Driver *drvthis)
|
||||
p->axismap[2*i] = strdup(mapval);
|
||||
report(RPT_DEBUG, "%s: map Axis%dneg to %s",
|
||||
drvthis->name, i+1, p->axismap[2*i]);
|
||||
}
|
||||
}
|
||||
|
||||
snprintf(mapkey, sizeof(mapkey), "Map_Axis%dpos", i+1);
|
||||
mapval = drvthis->config_get_string(drvthis->name, mapkey, 0, NULL);
|
||||
@@ -155,7 +155,7 @@ joy_init (Driver *drvthis)
|
||||
p->axismap[2*i + 1] = strdup(mapval);
|
||||
report(RPT_DEBUG, "%s: map Axis%dpos to %s",
|
||||
drvthis->name, i+1, p->axismap[2*i + 1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (i = 0; i < p->buttons; i++) {
|
||||
@@ -168,7 +168,7 @@ joy_init (Driver *drvthis)
|
||||
p->buttonmap[i] = strdup(mapval);
|
||||
report(RPT_DEBUG, "%s: map Button%d to %s",
|
||||
drvthis->name, i+1, p->buttonmap[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* End of config file parsing (2nd part) */
|
||||
|
||||
Reference in New Issue
Block a user