summaryrefslogtreecommitdiff
path: root/src/minutils/s6-umount.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-03-12 13:44:14 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-03-12 13:44:14 +0000
commit54d4b6e74bf539930db2cafbe075416894900076 (patch)
tree29df64c4ff1eddc3c692b82556e3dde5dc2ae0ee /src/minutils/s6-umount.c
parent495d625add9e52b29a98c4fa2627a45d20d44849 (diff)
downloads6-linux-utils-54d4b6e74bf539930db2cafbe075416894900076.tar.xz
Fix a few omissions2.3.0.0
Diffstat (limited to 'src/minutils/s6-umount.c')
-rw-r--r--src/minutils/s6-umount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/minutils/s6-umount.c b/src/minutils/s6-umount.c
index 31773cb..eee2910 100644
--- a/src/minutils/s6-umount.c
+++ b/src/minutils/s6-umount.c
@@ -1,6 +1,6 @@
/* ISC license. */
-#include <sys/types.h>
+#include <string.h>
#include <sys/mount.h>
#include <skalibs/bytestr.h>
#include <skalibs/buffer.h>
@@ -25,7 +25,7 @@ static int umountall ( )
int r ;
int fd = open_readb("/proc/mounts") ;
if (fd < 0) strerr_diefu1sys(111, "open /proc/mounts") ;
- byte_zero(mountpoints, sizeof(mountpoints)) ;
+ memset(mountpoints, 0, sizeof(mountpoints)) ;
buffer_init(&b, &buffer_read, fd, buf, BUFSIZE+1) ;
for (;;)
{