summaryrefslogtreecommitdiff
path: root/src/libstddjb/absolutepath_tmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/absolutepath_tmp.c')
-rw-r--r--src/libstddjb/absolutepath_tmp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstddjb/absolutepath_tmp.c b/src/libstddjb/absolutepath_tmp.c
index 79a613a..3d3c2b1 100644
--- a/src/libstddjb/absolutepath_tmp.c
+++ b/src/libstddjb/absolutepath_tmp.c
@@ -1,5 +1,6 @@
/* ISC license. */
+#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
#include <skalibs/bytestr.h>
@@ -8,8 +9,8 @@
int sarealpath_tmp (stralloc *sa, char const *path, stralloc *tmp)
{
- unsigned int tmpbase = tmp->len ;
- unsigned int base = sa->len ;
+ size_t tmpbase = tmp->len ;
+ size_t base = sa->len ;
unsigned int loop = 48 ;
int fdhere ;
int wasnull = !sa->s ;