summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-04-02 01:32:26 +0900
committerGitHub <noreply@github.com>2022-04-02 01:32:26 +0900
commit95cd21928fae6e1806176cd56853cc1e490607ff (patch)
tree82f4d33c1b15ed2ad6dd533aa7dac944c8eb29c0 /src/shared
parentb17a681be52c5455514a4292954498e850d89f05 (diff)
parent798931160ee2b1ceadd4202abf881157bbaadead (diff)
downloadsystemd-95cd21928fae6e1806176cd56853cc1e490607ff.tar.gz
Merge pull request #22939 from yuwata/tree-wide-space
tree-wide: add space after if, switch, for, and while
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/conf-parser.c2
-rw-r--r--src/shared/ethtool-util.c4
-rw-r--r--src/shared/in-addr-prefix-util.c4
-rw-r--r--src/shared/install.c2
-rw-r--r--src/shared/journal-importer.c2
-rw-r--r--src/shared/mount-util.c2
-rw-r--r--src/shared/seccomp-util.c2
-rw-r--r--src/shared/service-util.c2
-rw-r--r--src/shared/udev-util.h2
9 files changed, 11 insertions, 11 deletions
diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c
index 23aed96b48..aeea0a02d5 100644
--- a/src/shared/conf-parser.c
+++ b/src/shared/conf-parser.c
@@ -1074,7 +1074,7 @@ int config_parse_warn_compat(
Disabled reason = ltype;
- switch(reason) {
+ switch (reason) {
case DISABLED_CONFIGURATION:
log_syntax(unit, LOG_DEBUG, filename, line, 0,
diff --git a/src/shared/ethtool-util.c b/src/shared/ethtool-util.c
index 6c9aeb1c6c..ef605346f2 100644
--- a/src/shared/ethtool-util.c
+++ b/src/shared/ethtool-util.c
@@ -393,7 +393,7 @@ int ethtool_get_permanent_hw_addr(int *ethtool_fd, const char *ifname, struct hw
if (dest != _v) \
updated = true; \
dest = _v; \
- } while(false)
+ } while (false)
#define UPDATE_WITH_MAX(dest, max, val, updated) \
do { \
@@ -404,7 +404,7 @@ int ethtool_get_permanent_hw_addr(int *ethtool_fd, const char *ifname, struct hw
if (dest != _v) \
updated = true; \
dest = _v; \
- } while(false)
+ } while (false)
int ethtool_set_wol(
int *ethtool_fd,
diff --git a/src/shared/in-addr-prefix-util.c b/src/shared/in-addr-prefix-util.c
index f907949c22..e23b8f9d13 100644
--- a/src/shared/in-addr-prefix-util.c
+++ b/src/shared/in-addr-prefix-util.c
@@ -108,7 +108,7 @@ int in_addr_prefixes_reduce(Set *prefixes) {
struct in_addr_prefix *p;
SET_FOREACH(p, prefixes)
- switch(p->family) {
+ switch (p->family) {
case AF_INET:
assert(p->prefixlen <= 32);
if (p->prefixlen == 0)
@@ -147,7 +147,7 @@ int in_addr_prefixes_reduce(Set *prefixes) {
if (p->prefixlen == 0)
continue;
- switch(p->family) {
+ switch (p->family) {
case AF_INET:
prefixlens = ipv4_prefixlens;
n = &ipv4_n_prefixlens;
diff --git a/src/shared/install.c b/src/shared/install.c
index 8e81ec41bf..58bccdcaa8 100644
--- a/src/shared/install.c
+++ b/src/shared/install.c
@@ -330,7 +330,7 @@ void unit_file_dump_changes(int r, const char *verb, const UnitFileChange *chang
for (size_t i = 0; i < n_changes; i++) {
assert(verb || changes[i].type_or_errno >= 0);
- switch(changes[i].type_or_errno) {
+ switch (changes[i].type_or_errno) {
case UNIT_FILE_SYMLINK:
if (!quiet)
log_info("Created symlink %s %s %s.",
diff --git a/src/shared/journal-importer.c b/src/shared/journal-importer.c
index c6caf9330a..7c355b6c89 100644
--- a/src/shared/journal-importer.c
+++ b/src/shared/journal-importer.c
@@ -281,7 +281,7 @@ static int process_special_field(JournalImporter *imp, char *line) {
int journal_importer_process_data(JournalImporter *imp) {
int r;
- switch(imp->state) {
+ switch (imp->state) {
case IMPORTER_STATE_LINE: {
char *line, *sep;
size_t n = 0;
diff --git a/src/shared/mount-util.c b/src/shared/mount-util.c
index 694c0383f5..78f06b25fe 100644
--- a/src/shared/mount-util.c
+++ b/src/shared/mount-util.c
@@ -531,7 +531,7 @@ int mode_to_inaccessible_node(
if (!runtime_dir)
runtime_dir = "/run";
- switch(mode & S_IFMT) {
+ switch (mode & S_IFMT) {
case S_IFREG:
node = "/systemd/inaccessible/reg";
break;
diff --git a/src/shared/seccomp-util.c b/src/shared/seccomp-util.c
index e597a156cf..c465bf58dd 100644
--- a/src/shared/seccomp-util.c
+++ b/src/shared/seccomp-util.c
@@ -107,7 +107,7 @@ const char* seccomp_arch_to_string(uint32_t c) {
* Names used here should be the same as those used for ConditionArchitecture=,
* except for "subarchitectures" like x32. */
- switch(c) {
+ switch (c) {
case SCMP_ARCH_NATIVE:
return "native";
case SCMP_ARCH_X86:
diff --git a/src/shared/service-util.c b/src/shared/service-util.c
index 99b1108b77..68aa5775f5 100644
--- a/src/shared/service-util.c
+++ b/src/shared/service-util.c
@@ -58,7 +58,7 @@ int service_parse_argv(
assert(argv);
while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
- switch(c) {
+ switch (c) {
case 'h':
return help(argv[0], service, description, bus_objects);
diff --git a/src/shared/udev-util.h b/src/shared/udev-util.h
index a48beb95ea..ce016e88db 100644
--- a/src/shared/udev-util.h
+++ b/src/shared/udev-util.h
@@ -79,7 +79,7 @@ bool udev_available(void);
(void) sd_device_get_syspath(_d, &_p); \
(void) sd_device_get_subsystem(_d, &_s); \
STAP_PROBEV(udev, name, device_action_to_string(_a), _n, _p, _s __VA_OPT__(,) __VA_ARGS__);\
- } while(false);
+ } while (false);
#else
#define DEVICE_TRACE_POINT(name, dev, ...) ((void) 0)
#endif