chiark / gitweb /
*: fix some inconsistent control statement style
authorVito Caputo <vcaputo@pengaru.com>
Sat, 2 Dec 2017 00:49:52 +0000 (16:49 -0800)
committerSven Eden <yamakuzure@gmx.net>
Sat, 2 Dec 2017 00:49:52 +0000 (16:49 -0800)
src/basic/set.c
src/login/loginctl.c
src/shared/bus-util.c

index fd398b82125115121f573e62bf7bc458ead88b88..5356fba1f3a668394c2df6afc87895cc54e96480 100644 (file)
@@ -38,7 +38,7 @@ int set_make(Set **ret, const struct hash_ops *hash_ops HASHMAP_DEBUG_PARAMS, vo
 
                 va_start(ap, add);
 
-                for(;;) {
+                for (;;) {
                         void *arg = va_arg(ap, void*);
 
                         if (!arg)
index 6fe70b7141e304fdbc7a0e7706c94ea7473f4406..7343fecaab6a334ac7c524bc69c5041773dab959 100644 (file)
@@ -761,7 +761,7 @@ static int print_seat_status_info(sd_bus *bus, const char *path, bool *new_line)
                         printf(fmt "\n", __VA_ARGS__);                  \
                 else                                                    \
                         printf("%s=" fmt "\n", name, __VA_ARGS__);      \
-        } while(0)
+        } while (0)
 
 static int print_property(const char *name, sd_bus_message *m, const char *contents) {
         int r;
index 81e1db34f40b424b64472ccb06e9c8c1107ef570..e28f1d4bc651ccf5b051d84d240ef315895de13a 100644 (file)
@@ -663,7 +663,7 @@ int bus_connect_user_systemd(sd_bus **_bus) {
                         printf(fmt "\n", __VA_ARGS__);                  \
                 else                                                    \
                         printf("%s=" fmt "\n", name, __VA_ARGS__);      \
-        } while(0)
+        } while (0)
 
 int bus_print_property(const char *name, sd_bus_message *property, bool value, bool all) {
         char type;