summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2017-12-01 16:49:52 -0800
committerSven Eden <yamakuzure@gmx.net>2017-12-01 16:49:52 -0800
commit4e26aad6f96fc8f2c80e5414abe28c347aa4a428 (patch)
tree708038e92035e00ea584ae9ddc6eb2ec82cc8bdd /src
parent70b8a9356adcf37ec929ef545c2adf76806aab64 (diff)
*: fix some inconsistent control statement style
Diffstat (limited to 'src')
-rw-r--r--src/basic/set.c2
-rw-r--r--src/login/loginctl.c2
-rw-r--r--src/shared/bus-util.c2
3 files changed, 3 insertions, 3 deletions
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;