diff options
Diffstat (limited to 'src/skaembutils/s6-basename.c')
-rw-r--r-- | src/skaembutils/s6-basename.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/skaembutils/s6-basename.c b/src/skaembutils/s6-basename.c index 113e14b..6ca6217 100644 --- a/src/skaembutils/s6-basename.c +++ b/src/skaembutils/s6-basename.c @@ -1,5 +1,6 @@ /* ISC license. */ +#include <sys/types.h> #include <skalibs/sgetopt.h> #include <skalibs/allreadwrite.h> #include <skalibs/bytestr.h> @@ -33,7 +34,7 @@ int main (int argc, char const *const *argv) strerr_diefu2sys(111, "get basename of ", argv[0]) ; if (argc >= 2) { - unsigned int n = str_len(argv[1]) ; + size_t n = str_len(argv[1]) ; if ((n < sa.len) && !byte_diff(argv[1], n, sa.s + sa.len - n)) sa.len -= n ; } |