Commit 01ac9f6f authored by Petri Hintukainen's avatar Petri Hintukainen

Cosmetics (rename variable)

parent ba7ef11e
......@@ -1220,7 +1220,7 @@ UDFDIR *udfread_opendir(udfread *udf, const char *path)
struct udfread_dirent *udfread_readdir(UDFDIR *p, struct udfread_dirent *entry)
{
const struct udf_file_identifier *fe;
const struct udf_file_identifier *fi;
if (!p || !entry || !p->dir) {
return NULL;
......@@ -1230,14 +1230,14 @@ struct udfread_dirent *udfread_readdir(UDFDIR *p, struct udfread_dirent *entry)
return NULL;
}
fe = &p->dir->files[p->current_file];
fi = &p->dir->files[p->current_file];
entry->d_name = fe->filename;
entry->d_name = fi->filename;
if (fe->characteristic & CHAR_FLAG_PARENT) {
if (fi->characteristic & CHAR_FLAG_PARENT) {
entry->d_type = UDF_DT_DIR;
entry->d_name = "..";
} else if (fe->characteristic & CHAR_FLAG_DIR) {
} else if (fi->characteristic & CHAR_FLAG_DIR) {
entry->d_type = UDF_DT_DIR;
} else {
entry->d_type = UDF_DT_REG;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment