mirror of
https://github.com/troglobit/finit.git
synced 2026-10-20 11:19:35 +00:00
Follow-up, coding style and drop extra print()
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
595e2b4e81
commit
9b9158a765
1 file changed
+3
-5
+3
-5
@@ -93,7 +93,7 @@ void unmount_tmpfs(void)
|
||||
|
||||
while ((mnt = iterator("/proc/mounts", &fp))) {
|
||||
if (!strcmp("tmpfs", mnt->mnt_fsname) && !umount(mnt->mnt_dir))
|
||||
iterator_end(&fp); // Restart iteration
|
||||
iterator_end(&fp); /* Restart iteration */
|
||||
}
|
||||
}
|
||||
|
||||
@@ -103,10 +103,8 @@ void unmount_regular(void)
|
||||
FILE *fp = NULL;
|
||||
|
||||
while ((mnt = iterator("/proc/mounts", &fp))) {
|
||||
if (!umount(mnt->mnt_dir)) {
|
||||
print(0, "Unmounted %s", mnt->mnt_dir);
|
||||
iterator_end(&fp); // Restart iteration
|
||||
}
|
||||
if (!umount(mnt->mnt_dir))
|
||||
iterator_end(&fp); /* Restart iteration */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user