tools/record: add some curly braces
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 11 Feb 2021 21:20:27 +0000 (07:20 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 11 Feb 2021 21:35:58 +0000 (07:35 +1000)
list_for_each is just a fancy for loop but it looks weird without braces.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools/libinput-record.c

index 013939408648111992eba1a05e967194038197b4..98aed214c08ab44ec9d2208a8bfcf7eba2094ca6 100644 (file)
@@ -2289,8 +2289,9 @@ mainloop(struct record_context *ctx)
                         */
                        had_events = true;
                        had_events_since_last_time = true;
-                       list_for_each(d, &ctx->devices, link)
+                       list_for_each(d, &ctx->devices, link) {
                                handle_events(ctx, d, d == first_device);
+                       }
 
                        /* This shouldn't pull any events off unless caused
                         * by libinput-internal timeouts (e.g. tapping) */