diff options
Diffstat (limited to 'src/libunixonacid/mkdir_unique.c')
-rw-r--r-- | src/libunixonacid/mkdir_unique.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libunixonacid/mkdir_unique.c b/src/libunixonacid/mkdir_unique.c index 1eee4c6..83e240e 100644 --- a/src/libunixonacid/mkdir_unique.c +++ b/src/libunixonacid/mkdir_unique.c @@ -1,5 +1,6 @@ /* ISC license. */ +#include <sys/types.h> #include <sys/stat.h> #include <skalibs/stralloc.h> #include <skalibs/random.h> @@ -7,7 +8,7 @@ int mkdir_unique (stralloc *sa, char const *fn, unsigned int mode) { - unsigned int base = sa->len ; + size_t base = sa->len ; int wasnull = !sa->s ; if (!stralloc_cats(sa, fn)) return 0 ; if (!stralloc_cats(sa, "/mkdir_unique:")) goto fail ; |