]> git.ipfire.org Git - pakfire.git/commitdiff
archive: cookie: Rename __f to f now that variable is free again
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 21 Oct 2024 17:33:27 +0000 (17:33 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 21 Oct 2024 17:33:27 +0000 (17:33 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/archive.c

index 4cef9efda749a112f67cf9959b565ac5b41a493e..e1342db1324b993919ad7a3577c56a3e3667de18 100644 (file)
@@ -801,7 +801,7 @@ struct pakfire_archive_read_cookie {
        struct archive* a;
 
        // File handle opened by the cookie
-       FILE* __f;
+       FILE* f;
 
        // Some flags
        int flags;
@@ -891,8 +891,8 @@ static int __pakfire_archive_read(struct pakfire_ctx* ctx,
        struct pakfire_archive_read_cookie* cookie = data;
 
        // Create a file descriptor
-       cookie->__f = fopencookie(cookie, "r", pakfire_archive_read_functions);
-       if (!cookie->__f) {
+       cookie->f = fopencookie(cookie, "r", pakfire_archive_read_functions);
+       if (!cookie->f) {
                CTX_ERROR(ctx, "Could not open /%s: %m\n", cookie->path);
                return PAKFIRE_WALK_ERROR;
        }
@@ -952,7 +952,7 @@ AGAIN:
        }
 
        // Nothing found
-       if (!cookie->__f) {
+       if (!cookie->f) {
                CTX_ERROR(archive->ctx, "Could not find /%s\n", path);
 
                // No such file or directory
@@ -960,7 +960,7 @@ AGAIN:
                goto ERROR;
        }
 
-       return cookie->__f;
+       return cookie->f;
 
 ERROR:
        if (cookie)