Fix a couple of coding style issues
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 1 May 2015 01:41:12 +0000 (11:41 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 1 May 2015 02:09:57 +0000 (12:09 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-mt-touchpad-tap.c
test/build-pedantic.c
test/log.c
test/misc.c
test/pointer.c
test/touchpad.c
test/trackpoint.c
tools/ptraccel-debug.c

index 0f25e26..7d1fc84 100644 (file)
@@ -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);
index 920fc4a..f602127 100644 (file)
@@ -3,6 +3,7 @@
 /* This is a build-test only */
 
 int
-main(void) {
+main(void)
+{
        return 0;
 }
index a56af15..139c002 100644 (file)
@@ -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);
index 829da7d..e9d5462 100644 (file)
@@ -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);
index 1dde354..a0f862b 100644 (file)
@@ -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);
index 830e589..094f671 100644 (file)
@@ -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);
 
index 2708bad..ac6173e 100644 (file)
@@ -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);
index d00e8f3..fdd8490 100644 (file)
@@ -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;