diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-01-08 22:37:23 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-01-08 22:37:23 +0000 |
commit | c0bfd8814f6cd8e45a230deca0f28954ed38480e (patch) | |
tree | 3fe2e7692806402346cae9509b22d790e5a6b39d /src/libs6rc/s6rc_servicedir_unblock.c | |
parent | da010cd4a3a4da1b03940b76b138e75cc36106cf (diff) | |
download | s6-rc-c0bfd8814f6cd8e45a230deca0f28954ed38480e.tar.xz |
Types fix: first pass
Diffstat (limited to 'src/libs6rc/s6rc_servicedir_unblock.c')
-rw-r--r-- | src/libs6rc/s6rc_servicedir_unblock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs6rc/s6rc_servicedir_unblock.c b/src/libs6rc/s6rc_servicedir_unblock.c index 6fd846c..0c2ae23 100644 --- a/src/libs6rc/s6rc_servicedir_unblock.c +++ b/src/libs6rc/s6rc_servicedir_unblock.c @@ -1,5 +1,6 @@ /* ISC license. */ +#include <sys/types.h> #include <errno.h> #include <unistd.h> #include <skalibs/bytestr.h> @@ -10,7 +11,7 @@ int s6rc_servicedir_unblock (char const *dir, int h) { if (h) { - unsigned int dirlen = str_len(dir) ; + size_t dirlen = str_len(dir) ; char fn[dirlen + 6] ; byte_copy(fn, dirlen, dir) ; byte_copy(fn + dirlen, 6, "/down") ; |