From: Jelle van der Waa Date: Wed, 21 May 2025 18:44:59 +0000 (+0200) Subject: validatefs: correct argument comments X-Git-Tag: v258-rc1~505^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b67ed854f3ad43dd49ccaafef97f5f118345c48;p=thirdparty%2Fsystemd.git validatefs: correct argument comments These functions come from util-linux and can't be renamed. --- diff --git a/src/validatefs/validatefs.c b/src/validatefs/validatefs.c index eef4c798f6a..e327e4b5b02 100644 --- a/src/validatefs/validatefs.c +++ b/src/validatefs/validatefs.c @@ -257,7 +257,7 @@ static int validate_gpt_label(blkid_probe b, const ValidateFields *f) { return 0; const char *v = NULL; - (void) blkid_probe_lookup_value(b, "PART_ENTRY_NAME", &v, /* ret_len= */ NULL); + (void) blkid_probe_lookup_value(b, "PART_ENTRY_NAME", &v, /* len= */ NULL); if (strv_contains(f->gpt_label, strempty(v))) return 0; @@ -277,7 +277,7 @@ static int validate_gpt_type(blkid_probe b, const ValidateFields *f) { return 0; const char *v = NULL; - (void) blkid_probe_lookup_value(b, "PART_ENTRY_TYPE", &v, /* ret_len= */ NULL); + (void) blkid_probe_lookup_value(b, "PART_ENTRY_TYPE", &v, /* len= */ NULL); sd_id128_t id; if (!v || sd_id128_from_string(v, &id) < 0) { @@ -335,7 +335,7 @@ static int validate_gpt_metadata_one(sd_device *d, const char *path, const Valid assert(r == _BLKID_SAFEPROBE_FOUND); const char *v = NULL; - (void) blkid_probe_lookup_value(b, "PART_ENTRY_SCHEME", &v, /* ret_len= */ NULL); + (void) blkid_probe_lookup_value(b, "PART_ENTRY_SCHEME", &v, /* len= */ NULL); if (!streq_ptr(v, "gpt")) return log_error_errno(SYNTHETIC_ERRNO(EPERM), "File system is supposed to be on a GPT partition table, but is not, refusing.");