attempt_read_entry -> try_to_read_valid_entry
This commit is contained in:
parent
cdf1e0bcba
commit
f156f8472e
@ -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
|
// 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
|
// 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.
|
// 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 minitar_entry entry;
|
||||||
struct tar_header hdr;
|
struct tar_header hdr;
|
||||||
@ -74,7 +74,7 @@ struct minitar_entry* minitar_read_entry(struct minitar* mp)
|
|||||||
int valid;
|
int valid;
|
||||||
struct minitar_entry* result;
|
struct minitar_entry* result;
|
||||||
do {
|
do {
|
||||||
result = minitar_attempt_read_entry(mp, &valid);
|
result = minitar_try_to_read_valid_entry(mp, &valid);
|
||||||
} while (!valid); // Skip over invalid entries
|
} while (!valid); // Skip over invalid entries
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user