Merge pull request #22939 from yuwata/tree-wide-space

tree-wide: add space after if, switch, for, and while
This commit is contained in:
Yu Watanabe
2022-04-02 01:32:26 +09:00
committed by GitHub
57 changed files with 88 additions and 82 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;
+4 -4
View File
@@ -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;
+1 -1
View File
@@ -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: