summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-04-01 18:32:26 +0200
committerGitHub <noreply@github.com>2022-04-01 18:32:26 +0200
commit95cd21928fae6e1806176cd56853cc1e490607ff (patch)
tree82f4d33c1b15ed2ad6dd533aa7dac944c8eb29c0 /src/core
parenttree-wide: fix typo (diff)
parenttree-wide: add a space after if, switch, for, and while (diff)
downloadsystemd-95cd21928fae6e1806176cd56853cc1e490607ff.tar.xz
systemd-95cd21928fae6e1806176cd56853cc1e490607ff.zip
Merge pull request #22939 from yuwata/tree-wide-space
tree-wide: add space after if, switch, for, and while
Diffstat (limited to 'src/core')
-rw-r--r--src/core/bpf-devices.c2
-rw-r--r--src/core/dbus-manager.c2
-rw-r--r--src/core/selinux-access.c2
-rw-r--r--src/core/smack-setup.c8
-rw-r--r--src/core/socket.c2
5 files changed, 8 insertions, 8 deletions
diff --git a/src/core/bpf-devices.c b/src/core/bpf-devices.c
index f62c6f1931..46996d28f4 100644
--- a/src/core/bpf-devices.c
+++ b/src/core/bpf-devices.c
@@ -22,7 +22,7 @@ static int bpf_access_type(const char *acc) {
assert(acc);
for (; *acc; acc++)
- switch(*acc) {
+ switch (*acc) {
case 'r':
r |= BPF_DEVCG_ACC_READ;
break;
diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c
index 572c59dda4..6bf4e6bf76 100644
--- a/src/core/dbus-manager.c
+++ b/src/core/dbus-manager.c
@@ -2162,7 +2162,7 @@ static int install_error(
for (size_t i = 0; i < n_changes; i++)
- switch(changes[i].type_or_errno) {
+ switch (changes[i].type_or_errno) {
case 0 ... _UNIT_FILE_CHANGE_TYPE_MAX: /* not errors */
continue;
diff --git a/src/core/selinux-access.c b/src/core/selinux-access.c
index ad098e99df..d77901caa5 100644
--- a/src/core/selinux-access.c
+++ b/src/core/selinux-access.c
@@ -69,7 +69,7 @@ static int audit_callback(
}
static int callback_type_to_priority(int type) {
- switch(type) {
+ switch (type) {
case SELINUX_ERROR:
return LOG_ERR;
diff --git a/src/core/smack-setup.c b/src/core/smack-setup.c
index f88cb80834..b76bb74465 100644
--- a/src/core/smack-setup.c
+++ b/src/core/smack-setup.c
@@ -304,7 +304,7 @@ int mac_smack_setup(bool *loaded_policy) {
assert(loaded_policy);
r = write_access2_rules("/etc/smack/accesses.d/");
- switch(r) {
+ switch (r) {
case -ENOENT:
log_debug("Smack is not enabled in the kernel.");
return 0;
@@ -336,7 +336,7 @@ int mac_smack_setup(bool *loaded_policy) {
#endif
r = write_cipso2_rules("/etc/smack/cipso.d/");
- switch(r) {
+ switch (r) {
case -ENOENT:
log_debug("Smack/CIPSO is not enabled in the kernel.");
return 0;
@@ -352,7 +352,7 @@ int mac_smack_setup(bool *loaded_policy) {
}
r = write_netlabel_rules("/etc/smack/netlabel.d/");
- switch(r) {
+ switch (r) {
case -ENOENT:
log_debug("Smack/CIPSO is not enabled in the kernel.");
return 0;
@@ -368,7 +368,7 @@ int mac_smack_setup(bool *loaded_policy) {
}
r = write_onlycap_list();
- switch(r) {
+ switch (r) {
case -ENOENT:
log_debug("Smack is not enabled in the kernel.");
break;
diff --git a/src/core/socket.c b/src/core/socket.c
index 802c6afde6..0d96f1a933 100644
--- a/src/core/socket.c
+++ b/src/core/socket.c
@@ -439,7 +439,7 @@ static int peer_address_compare_func(const SocketPeer *x, const SocketPeer *y) {
if (r != 0)
return r;
- switch(x->peer.sa.sa_family) {
+ switch (x->peer.sa.sa_family) {
case AF_INET:
return memcmp(&x->peer.in.sin_addr, &y->peer.in.sin_addr, sizeof(x->peer.in.sin_addr));
case AF_INET6: