summaryrefslogtreecommitdiff
path: root/src/libs6rc/s6rc_servicedir_copy_online.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs6rc/s6rc_servicedir_copy_online.c')
-rw-r--r--src/libs6rc/s6rc_servicedir_copy_online.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libs6rc/s6rc_servicedir_copy_online.c b/src/libs6rc/s6rc_servicedir_copy_online.c
index 76d9e10..902e6ad 100644
--- a/src/libs6rc/s6rc_servicedir_copy_online.c
+++ b/src/libs6rc/s6rc_servicedir_copy_online.c
@@ -1,5 +1,6 @@
/* ISC license. */
+#include <sys/types.h>
#include <errno.h>
#include <unistd.h>
#include <stdio.h>
@@ -11,8 +12,8 @@
int s6rc_servicedir_copy_online (char const *src, char const *dst)
{
- unsigned int srclen = str_len(src) ;
- unsigned int dstlen = str_len(dst) ;
+ size_t srclen = str_len(src) ;
+ size_t dstlen = str_len(dst) ;
unsigned int n ;
unsigned int i = 0 ;
int wantup = 0 ;