diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-01-08 18:52:14 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-01-08 18:52:14 +0000 |
commit | 9be4af55521d653cfb1c5037412e937f800888c7 (patch) | |
tree | e79c0cdf1cb15bde9c13e54a5bbf87ad34ce0013 /src/minutils/s6-swapoff.c | |
parent | 2ece041307a67f02ab1592f623d9d63cbed13489 (diff) | |
download | s6-linux-utils-9be4af55521d653cfb1c5037412e937f800888c7.tar.gz s6-linux-utils-9be4af55521d653cfb1c5037412e937f800888c7.tar.xz s6-linux-utils-9be4af55521d653cfb1c5037412e937f800888c7.zip |
Types fix, first pass
Deeper fixes need to be done if the avltree.h API ever changes.
Diffstat (limited to 'src/minutils/s6-swapoff.c')
-rw-r--r-- | src/minutils/s6-swapoff.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <sys/types.h> #include <errno.h> #include <skalibs/bytestr.h> #include <skalibs/buffer.h> @@ -12,7 +13,7 @@ extern int swapoff (char const *) ; #define USAGE "s6-swapoff device <or> 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") ; |