Commit 8ead828e authored by Peter Hutterer's avatar Peter Hutterer

Fix a couple of coding style issues

Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent c2ef1854
......@@ -59,8 +59,8 @@ enum tap_event {
*/
static inline const char*
tap_state_to_str(enum tp_tap_state state) {
tap_state_to_str(enum tp_tap_state state)
{
switch(state) {
CASE_RETURN_STRING(TAP_STATE_IDLE);
CASE_RETURN_STRING(TAP_STATE_HOLD);
......@@ -82,8 +82,8 @@ tap_state_to_str(enum tp_tap_state state) {
}
static inline const char*
tap_event_to_str(enum tap_event event) {
tap_event_to_str(enum tap_event event)
{
switch(event) {
CASE_RETURN_STRING(TAP_EVENT_TOUCH);
CASE_RETURN_STRING(TAP_EVENT_MOTION);
......
......@@ -3,6 +3,7 @@
/* This is a build-test only */
int
main(void) {
main(void)
{
return 0;
}
......@@ -140,7 +140,8 @@ START_TEST(log_priority)
}
END_TEST
int main (int argc, char **argv) {
int main (int argc, char **argv)
{
litest_add_no_device("log:defaults", log_default_priority);
litest_add_no_device("log:logging", log_handler_invoked);
litest_add_no_device("log:logging", log_handler_NULL);
......
......@@ -583,7 +583,8 @@ START_TEST(trackpoint_accel_parser)
}
END_TEST
int main (int argc, char **argv) {
int main (int argc, char **argv)
{
litest_add_no_device("events:conversion", event_conversion_device_notify);
litest_add_for_device("events:conversion", event_conversion_pointer, LITEST_MOUSE);
litest_add_for_device("events:conversion", event_conversion_pointer, LITEST_MOUSE);
......
......@@ -1253,8 +1253,8 @@ START_TEST(middlebutton_default_touchpad)
}
END_TEST
int main (int argc, char **argv) {
int main (int argc, char **argv)
{
litest_add("pointer:motion", pointer_motion_relative, LITEST_RELATIVE, LITEST_ANY);
litest_add("pointer:motion", pointer_motion_absolute, LITEST_ABSOLUTE, LITEST_ANY);
litest_add("pointer:motion", pointer_motion_unaccel, LITEST_RELATIVE, LITEST_ANY);
......
......@@ -4116,8 +4116,8 @@ START_TEST(touchpad_trackpoint_no_trackpoint)
}
END_TEST
int main(int argc, char **argv) {
int main(int argc, char **argv)
{
litest_add("touchpad:motion", touchpad_1fg_motion, LITEST_TOUCHPAD, LITEST_ANY);
litest_add("touchpad:motion", touchpad_2fg_no_motion, LITEST_TOUCHPAD, LITEST_SINGLE_TOUCH);
......
......@@ -130,8 +130,8 @@ START_TEST(trackpoint_scroll_source)
}
END_TEST
int main(int argc, char **argv) {
int main(int argc, char **argv)
{
litest_add("trackpoint:middlebutton", trackpoint_middlebutton, LITEST_POINTINGSTICK, LITEST_ANY);
litest_add("trackpoint:middlebutton", trackpoint_middlebutton_noscroll, LITEST_POINTINGSTICK, LITEST_ANY);
litest_add("trackpoint:scroll", trackpoint_scroll, LITEST_POINTINGSTICK, LITEST_ANY);
......
......@@ -178,7 +178,8 @@ usage(void)
}
int
main(int argc, char **argv) {
main(int argc, char **argv)
{
struct motion_filter *filter;
double step = 0.1,
max_dx = 10;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment