Minor, rename local variable
The iterator works on any fstab like file, but to keep confusion to a
minimum, rename local variable.
@@ -70,12 +70,12 @@ static void iterator_end(FILE **fp)
*fp = NULL;
}
-static struct mntent *iterator(char *fstab, FILE **fp)
+static struct mntent *iterator(char *filename, FILE **fp)
{
static struct mntent *mnt;
- if (!*fp && fstab) {
- *fp = setmntent(fstab, "r");
+ if (!*fp && filename) {
+ *fp = setmntent(filename, "r");
if (!*fp)
return NULL;
}
