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_unsupervise.c | |
parent | da010cd4a3a4da1b03940b76b138e75cc36106cf (diff) | |
download | s6-rc-c0bfd8814f6cd8e45a230deca0f28954ed38480e.tar.xz |
Types fix: first pass
Diffstat (limited to 'src/libs6rc/s6rc_servicedir_unsupervise.c')
-rw-r--r-- | src/libs6rc/s6rc_servicedir_unsupervise.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libs6rc/s6rc_servicedir_unsupervise.c b/src/libs6rc/s6rc_servicedir_unsupervise.c index 14a1164..bc5ab63 100644 --- a/src/libs6rc/s6rc_servicedir_unsupervise.c +++ b/src/libs6rc/s6rc_servicedir_unsupervise.c @@ -1,5 +1,6 @@ /* ISC license. */ +#include <sys/types.h> #include <unistd.h> #include <skalibs/bytestr.h> #include <s6/s6-supervise.h> @@ -7,8 +8,8 @@ void s6rc_servicedir_unsupervise (char const *live, char const *name, int keepsupervisor) { - unsigned int namelen = str_len(name) ; - unsigned int livelen = str_len(live) ; + size_t namelen = str_len(name) ; + size_t livelen = str_len(live) ; char fn[livelen + 14 + namelen] ; byte_copy(fn, livelen, live) ; byte_copy(fn + livelen, 9, "/scandir/") ; |