summaryrefslogtreecommitdiff
path: root/src/libs6rc/s6rc_servicedir_unsupervise.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs6rc/s6rc_servicedir_unsupervise.c')
-rw-r--r--src/libs6rc/s6rc_servicedir_unsupervise.c5
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/") ;