From f156f8472ed12091ab9ec76c2aa093e1ed3d3e40 Mon Sep 17 00:00:00 2001
From: apio <blobs.trading@gmail.com>
Date: Wed, 23 Nov 2022 20:56:57 +0100
Subject: [PATCH] attempt_read_entry -> try_to_read_valid_entry

---
 src/tar.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tar.c b/src/tar.c
index f82a389..9f0fc26 100644
--- a/src/tar.c
+++ b/src/tar.c
@@ -38,7 +38,7 @@ int minitar_close(struct minitar* mp)
 // valid header, valid is set to 0 so we can try again with the next block. In any other case, valid is set to 1. This
 // helps distinguish valid return values, null pointers that should be returned to the user (for example, EOF), and
 // invalid headers where we should just try again until we find a valid one.
-static struct minitar_entry* minitar_attempt_read_entry(struct minitar* mp, int* valid)
+static struct minitar_entry* minitar_try_to_read_valid_entry(struct minitar* mp, int* valid)
 {
     struct minitar_entry entry;
     struct tar_header hdr;
@@ -74,7 +74,7 @@ struct minitar_entry* minitar_read_entry(struct minitar* mp)
     int valid;
     struct minitar_entry* result;
     do {
-        result = minitar_attempt_read_entry(mp, &valid);
+        result = minitar_try_to_read_valid_entry(mp, &valid);
     } while (!valid); // Skip over invalid entries
     return result;
 }