summaryrefslogtreecommitdiff
path: root/src/minutils/s6-umount.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/minutils/s6-umount.c')
-rw-r--r--src/minutils/s6-umount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/minutils/s6-umount.c b/src/minutils/s6-umount.c
index 966b455..31773cb 100644
--- a/src/minutils/s6-umount.c
+++ b/src/minutils/s6-umount.c
@@ -1,5 +1,6 @@
/* ISC license. */
+#include <sys/types.h>
#include <sys/mount.h>
#include <skalibs/bytestr.h>
#include <skalibs/buffer.h>
@@ -28,7 +29,7 @@ static int umountall ( )
buffer_init(&b, &buffer_read, fd, buf, BUFSIZE+1) ;
for (;;)
{
- unsigned int n, p ;
+ size_t n, p ;
if (line >= MAXLINES) strerr_dief1x(111, "/proc/mounts too big") ;
sa.len = 0 ;
r = skagetln(&b, &sa, '\n') ;