diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-11-20 17:42:38 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-01-04 22:56:33 +0100 |
commit | 01ae684782f3d1f50545126ce8829dc7c809f489 (patch) | |
tree | 98fd0bca4c0a82cf69da8186ab173e3fabe2e881 /src | |
parent | logind: use unlink_and_free() at once more place (diff) | |
download | systemd-01ae684782f3d1f50545126ce8829dc7c809f489.tar.xz systemd-01ae684782f3d1f50545126ce8829dc7c809f489.zip |
find-esp: adjust parameter indentating to our usual coding style
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/find-esp.c | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/src/shared/find-esp.c b/src/shared/find-esp.c index db87084a4d..f830d6dfe3 100644 --- a/src/shared/find-esp.c +++ b/src/shared/find-esp.c @@ -556,13 +556,16 @@ int find_esp_and_warn( if (rfd < 0) return -errno; - r = find_esp_and_warn_at(rfd, path, unprivileged_mode, - ret_path ? &p : NULL, - ret_part ? &part : NULL, - ret_pstart ? &pstart : NULL, - ret_psize ? &psize : NULL, - ret_uuid ? &uuid : NULL, - ret_devid ? &devid : NULL); + r = find_esp_and_warn_at( + rfd, + path, + unprivileged_mode, + ret_path ? &p : NULL, + ret_part ? &part : NULL, + ret_pstart ? &pstart : NULL, + ret_psize ? &psize : NULL, + ret_uuid ? &uuid : NULL, + ret_devid ? &devid : NULL); if (r < 0) return r; @@ -871,12 +874,12 @@ int find_xbootldr_and_warn_at( } int find_xbootldr_and_warn( - const char *root, - const char *path, - int unprivileged_mode, - char **ret_path, - sd_id128_t *ret_uuid, - dev_t *ret_devid) { + const char *root, + const char *path, + int unprivileged_mode, + char **ret_path, + sd_id128_t *ret_uuid, + dev_t *ret_devid) { _cleanup_close_ int rfd = -EBADF; _cleanup_free_ char *p = NULL; @@ -888,10 +891,13 @@ int find_xbootldr_and_warn( if (rfd < 0) return -errno; - r = find_xbootldr_and_warn_at(rfd, path, unprivileged_mode, - ret_path ? &p : NULL, - ret_uuid ? &uuid : NULL, - ret_devid ? &devid : NULL); + r = find_xbootldr_and_warn_at( + rfd, + path, + unprivileged_mode, + ret_path ? &p : NULL, + ret_uuid ? &uuid : NULL, + ret_devid ? &devid : NULL); if (r < 0) return r; |