Merge pull request #30622 from yuwata/space

tree-wide: drop unnecessary space or insert missing space
This commit is contained in:
Mike Yuan
2023-12-25 17:52:48 +08:00
committed by GitHub
61 changed files with 90 additions and 90 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ static inline bool size_multiply_overflow(size_t size, size_t need) {
return _unlikely_(need != 0 && size > (SIZE_MAX / need));
}
_malloc_ _alloc_(1, 2) static inline void *malloc_multiply(size_t size, size_t need) {
_malloc_ _alloc_(1, 2) static inline void *malloc_multiply(size_t size, size_t need) {
if (size_multiply_overflow(size, need))
return NULL;
+1 -1
View File
@@ -215,7 +215,7 @@ int cg_is_delegated_fd(int fd);
int cg_has_coredump_receive(const char *path);
typedef enum {
typedef enum {
CG_KEY_MODE_GRACEFUL = 1 << 0,
} CGroupKeyMode;
+1 -1
View File
@@ -125,7 +125,7 @@ static int parse_env_file_internal(
state = VALUE;
if (!GREEDY_REALLOC(value, n_value+2))
return -ENOMEM;
return -ENOMEM;
value[n_value++] = c;
}
+1 -1
View File
@@ -683,7 +683,7 @@ int replace_env_full(
pu = ret_unset_variables ? &unset_variables : NULL;
pb = ret_bad_variables ? &bad_variables : NULL;
for (e = format, i = 0; *e && i < n; e ++, i ++)
for (e = format, i = 0; *e && i < n; e++, i++)
switch (state) {
case WORD:
+1 -1
View File
@@ -156,7 +156,7 @@ int fsck_exists_for_fstype(const char *fstype);
char *_p, *_n; \
size_t _l; \
while (_path[0] == '/' && _path[1] == '/') \
_path ++; \
_path++; \
if (isempty(_root)) \
_ret = _path; \
else { \
+1 -1
View File
@@ -547,7 +547,7 @@ int sockaddr_pretty(
} else {
if (path[path_len - 1] == '\0')
/* We expect a terminating NUL and don't print it */
path_len --;
path_len--;
p = cescape_length(path, path_len);
}