]> git.ipfire.org Git - pakfire.git/commitdiff
key: Don't count line numbers when reading signatures
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 29 Jun 2025 16:31:44 +0000 (16:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 29 Jun 2025 16:31:44 +0000 (16:31 +0000)
We don't read the value again and clang keeps complaining.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/key.c

index 05df156da643e82f4dc1b050546b9961491a6204..523657585f9ad8fee93eaf0556fbff26da00c0cd 100644 (file)
@@ -897,16 +897,12 @@ static int pakfire_key_read_signature(pakfire_key* key,
 
        char* line = NULL;
        size_t length = 0;
-       size_t lineno = 0;
 
        for (;;) {
                ssize_t bytes_read = getline(&line, &length, f);
                if (bytes_read < 0)
                        break;
 
-               // Increment the line counter
-               lineno++;
-
                // Don't parse any comments
                if (pakfire_string_startswith(line, "untrusted comment:"))
                        continue;