Merge pull request #22939 from yuwata/tree-wide-space
tree-wide: add space after if, switch, for, and while
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
BEGIN{
|
||||
print "const char *arphrd_to_name(int id) {"
|
||||
print " switch(id) {"
|
||||
print " switch (id) {"
|
||||
}
|
||||
!/^HDLC$/ {
|
||||
printf " case ARPHRD_%s: return \"%s\";\n", $1, $1
|
||||
|
||||
+1
-1
@@ -162,7 +162,7 @@ struct _packed_ indirect_storage {
|
||||
unsigned n_buckets; /* number of buckets */
|
||||
|
||||
unsigned idx_lowest_entry; /* Index below which all buckets are free.
|
||||
Makes "while(hashmap_steal_first())" loops
|
||||
Makes "while (hashmap_steal_first())" loops
|
||||
O(n) instead of O(n^2) for unordered hashmaps. */
|
||||
uint8_t _pad[3]; /* padding for the whole HashmapBase */
|
||||
/* The bitfields in HashmapBase complete the alignment of the whole thing. */
|
||||
|
||||
@@ -228,7 +228,7 @@ struct cmsghdr* cmsg_find(struct msghdr *mh, int level, int type, socklen_t leng
|
||||
({ \
|
||||
const union sockaddr_union *__sa = &(sa); \
|
||||
size_t _len; \
|
||||
switch(__sa->sa.sa_family) { \
|
||||
switch (__sa->sa.sa_family) { \
|
||||
case AF_INET: \
|
||||
_len = sizeof(struct sockaddr_in); \
|
||||
break; \
|
||||
|
||||
@@ -113,4 +113,4 @@ ssize_t string_table_lookup(const char * const *table, size_t len, const char *k
|
||||
fputc_unlocked('\n', stdout); \
|
||||
} \
|
||||
funlockfile(stdout); \
|
||||
} while(false)
|
||||
} while (false)
|
||||
|
||||
@@ -70,7 +70,7 @@ int getxattr_at_malloc(
|
||||
by_procfs = true; /* fgetxattr() is not going to work, go via /proc/ link right-away */
|
||||
}
|
||||
|
||||
for(;;) {
|
||||
for (;;) {
|
||||
_cleanup_free_ char *v = NULL;
|
||||
ssize_t n;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user