summaryrefslogtreecommitdiff
path: root/src/libs6rc/s6rc_servicedir_internal.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-01-08 22:37:23 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-01-08 22:37:23 +0000
commitc0bfd8814f6cd8e45a230deca0f28954ed38480e (patch)
tree3fe2e7692806402346cae9509b22d790e5a6b39d /src/libs6rc/s6rc_servicedir_internal.c
parentda010cd4a3a4da1b03940b76b138e75cc36106cf (diff)
downloads6-rc-c0bfd8814f6cd8e45a230deca0f28954ed38480e.tar.xz
Types fix: first pass
Diffstat (limited to 'src/libs6rc/s6rc_servicedir_internal.c')
-rw-r--r--src/libs6rc/s6rc_servicedir_internal.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libs6rc/s6rc_servicedir_internal.c b/src/libs6rc/s6rc_servicedir_internal.c
index 7522313..ccc4644 100644
--- a/src/libs6rc/s6rc_servicedir_internal.c
+++ b/src/libs6rc/s6rc_servicedir_internal.c
@@ -1,5 +1,6 @@
/* ISC license. */
+#include <sys/types.h>
#include <errno.h>
#include <unistd.h>
#include <skalibs/uint.h>
@@ -27,9 +28,9 @@ unsigned int const s6rc_servicedir_file_maxlen = 15 ;
int s6rc_servicedir_copy_one (char const *src, char const *dst, s6rc_servicedir_desc_t const *p)
{
- unsigned int srclen = str_len(src) ;
- unsigned int dstlen = str_len(dst) ;
- unsigned int plen = str_len(p->name) ;
+ size_t srclen = str_len(src) ;
+ size_t dstlen = str_len(dst) ;
+ size_t plen = str_len(p->name) ;
char srcfn[srclen + plen + 2] ;
char dstfn[dstlen + plen + 2] ;
byte_copy(srcfn, srclen, src) ;