mirror of
https://github.com/troglobit/finit.git
synced 2026-10-17 10:49:34 +00:00
Minor, rename local variable
The iterator works on any fstab like file, but to keep confusion to a minimum, rename local variable. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
fa2a113cbf
commit
a02f369a89
1 file changed
+3
-3
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user