tree-wide: normalize comment style
This commit is contained in:
@@ -367,7 +367,7 @@ static int user_config_paths(char ***ret) {
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
r = strv_extend_strv_consume(&config_dirs, TAKE_PTR(data_dirs), /* filter_duplicates = */ true);
|
||||
r = strv_extend_strv_consume(&config_dirs, TAKE_PTR(data_dirs), /* filter_duplicates= */ true);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
@@ -1201,7 +1201,7 @@ static int fd_set_xattrs(
|
||||
"%s extended attribute '%s=%s' on %s", *name, *value, path);
|
||||
|
||||
if (!arg_dry_run) {
|
||||
r = xsetxattr(fd, /* path = */ NULL, AT_EMPTY_PATH, *name, *value);
|
||||
r = xsetxattr(fd, /* path= */ NULL, AT_EMPTY_PATH, *name, *value);
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to set extended attribute %s=%s on '%s': %m",
|
||||
*name, *value, path);
|
||||
@@ -1228,7 +1228,7 @@ static int path_set_xattrs(
|
||||
if (fd < 0)
|
||||
return fd;
|
||||
|
||||
return fd_set_xattrs(c, i, fd, path, /* st = */ NULL, creation);
|
||||
return fd_set_xattrs(c, i, fd, path, /* st= */ NULL, creation);
|
||||
}
|
||||
|
||||
static int parse_acls_from_arg(Item *item) {
|
||||
@@ -2132,7 +2132,7 @@ static int create_subvolume(
|
||||
return 0;
|
||||
}
|
||||
|
||||
fd = create_directory_or_subvolume(path, i->mode, /* subvol = */ true, i->allow_failure, &st, &creation);
|
||||
fd = create_directory_or_subvolume(path, i->mode, /* subvol= */ true, i->allow_failure, &st, &creation);
|
||||
if (fd == -EEXIST)
|
||||
return 0;
|
||||
if (fd < 0)
|
||||
@@ -2420,7 +2420,7 @@ static int create_symlink(Context *c, Item *i) {
|
||||
assert(i);
|
||||
|
||||
if (i->ignore_if_target_missing) {
|
||||
r = chase(i->argument, arg_root, CHASE_SAFE|CHASE_PREFIX_ROOT|CHASE_NOFOLLOW, /* ret_path = */ NULL, /* ret_fd = */ NULL);
|
||||
r = chase(i->argument, arg_root, CHASE_SAFE|CHASE_PREFIX_ROOT|CHASE_NOFOLLOW, /* ret_path= */ NULL, /* ret_fd= */ NULL);
|
||||
if (r == -ENOENT) {
|
||||
/* Silently skip over lines where the source file is missing. */
|
||||
log_info("Symlink source path '%s/%s' does not exist, skipping line.",
|
||||
@@ -3958,7 +3958,7 @@ static int parse_line(
|
||||
_cleanup_free_ void *data = NULL;
|
||||
size_t data_size = 0;
|
||||
|
||||
r = unbase64mem_full(item_binary_argument(&i), item_binary_argument_size(&i), /* secure = */ false,
|
||||
r = unbase64mem_full(item_binary_argument(&i), item_binary_argument_size(&i), /* secure= */ false,
|
||||
&data, &data_size);
|
||||
if (r < 0)
|
||||
return log_syntax(NULL, LOG_ERR, fname, line, r, "Failed to base64 decode specified argument '%s': %m", i.argument);
|
||||
|
||||
Reference in New Issue
Block a user