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
@@ -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,
+2 -2
View File
@@ -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,
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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.",
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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