From 9be4af55521d653cfb1c5037412e937f800888c7 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 8 Jan 2017 18:52:14 +0000 Subject: Types fix, first pass Deeper fixes need to be done if the avltree.h API ever changes. --- src/minutils/s6-swapoff.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/minutils/s6-swapoff.c') diff --git a/src/minutils/s6-swapoff.c b/src/minutils/s6-swapoff.c index 1067040..80df1ec 100644 --- a/src/minutils/s6-swapoff.c +++ b/src/minutils/s6-swapoff.c @@ -1,5 +1,6 @@ /* ISC license. */ +#include #include #include #include @@ -12,7 +13,7 @@ extern int swapoff (char const *) ; #define USAGE "s6-swapoff device s6-swapoff -a" -#define BUFSIZE 4096 +#define BUFSIZE 4095 static int swapoffall ( ) { @@ -27,7 +28,7 @@ static int swapoffall ( ) if (skagetln(&b, &sa, '\n') < 0) strerr_diefu1sys(111, "skagetln") ; for (;;) { - unsigned int n ; + size_t n ; sa.len = 0 ; r = skagetln(&b, &sa, '\n') ; if (r < 0) strerr_diefu1sys(111, "skagetln") ; -- cgit v1.3.1