mirror of
https://github.com/troglobit/finit.git
synced 2026-11-29 21:08:21 +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;
|
*fp = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct mntent *iterator(char *fstab, FILE **fp)
|
static struct mntent *iterator(char *filename, FILE **fp)
|
||||||
{
|
{
|
||||||
static struct mntent *mnt;
|
static struct mntent *mnt;
|
||||||
|
|
||||||
if (!*fp && fstab) {
|
if (!*fp && filename) {
|
||||||
*fp = setmntent(fstab, "r");
|
*fp = setmntent(filename, "r");
|
||||||
if (!*fp)
|
if (!*fp)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user