From: Vito Caputo Date: Sat, 2 Dec 2017 00:49:52 +0000 (-0800) Subject: *: fix some inconsistent control statement style X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=4e26aad6f96fc8f2c80e5414abe28c347aa4a428;p=elogind.git *: fix some inconsistent control statement style --- diff --git a/src/basic/set.c b/src/basic/set.c index fd398b821..5356fba1f 100644 --- a/src/basic/set.c +++ b/src/basic/set.c @@ -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) diff --git a/src/login/loginctl.c b/src/login/loginctl.c index 6fe70b714..7343fecaa 100644 --- a/src/login/loginctl.c +++ b/src/login/loginctl.c @@ -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; diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c index 81e1db34f..e28f1d4bc 100644 --- a/src/shared/bus-util.c +++ b/src/shared/bus-util.c @@ -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;