From 5e17662d138fc9c9f70a4422eab059c2bdc9432d Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 19 Jan 2020 00:35:34 +0000 Subject: Add -C and -B options, prepare for 1.0.4.0 --- src/misc/s6-linux-init-umountall.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/misc/s6-linux-init-umountall.c') 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 (;;) { -- cgit v1.3.1