summaryrefslogtreecommitdiff
path: root/src/misc/s6-linux-init-umountall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc/s6-linux-init-umountall.c')
-rw-r--r--src/misc/s6-linux-init-umountall.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/misc/s6-linux-init-umountall.c b/src/misc/s6-linux-init-umountall.c
index 93b0966..49c9f97 100644
--- a/src/misc/s6-linux-init-umountall.c
+++ b/src/misc/s6-linux-init-umountall.c
@@ -21,12 +21,10 @@ int main (int argc, char const *const *argv)
unsigned int got[EXCLUDEN] = { 0, 0, 0 } ;
stralloc sa = STRALLOC_ZERO ;
unsigned int line = 0 ;
- FILE *fp ;
int e = 0 ;
-
+ FILE *fp = setmntent("/proc/mounts", "r") ;
PROG = "s6-linux-init-umountall" ;
- fp = setmntent("/proc/mounts", "r") ;
if (!fp) strerr_diefu1sys(111, "open /proc/mounts") ;
for (;;)
{