X-Git-Url: https://git.sven.stormbind.net/?p=sven%2Fexfat-utils.git;a=blobdiff_plain;f=libexfat%2Flookup.c;fp=libexfat%2Flookup.c;h=137a84ab0c7836900f1e8fa79f8e133128bd9dd4;hp=4b27cc54e2679b201080b4c3ffa901147779309f;hb=3639f26edacd0198b1d3e4834000a88b6a43612c;hpb=2fa6c5654e0a345af10df5227b77d9f468759f20 diff --git a/libexfat/lookup.c b/libexfat/lookup.c index 4b27cc5..137a84a 100644 --- a/libexfat/lookup.c +++ b/libexfat/lookup.c @@ -46,7 +46,7 @@ void exfat_closedir(struct exfat* ef, struct exfat_iterator* it) it->current = NULL; } -struct exfat_node* exfat_readdir(struct exfat* ef, struct exfat_iterator* it) +struct exfat_node* exfat_readdir(struct exfat_iterator* it) { if (it->current == NULL) it->current = it->parent->child; @@ -93,7 +93,7 @@ static int lookup_name(struct exfat* ef, struct exfat_node* parent, rc = exfat_opendir(ef, parent, &it); if (rc != 0) return rc; - while ((*node = exfat_readdir(ef, &it))) + while ((*node = exfat_readdir(&it))) { if (compare_name(ef, buffer, (*node)->name) == 0) {