summaryrefslogtreecommitdiff
path: root/src/libstddjb/env_len.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/env_len.c')
-rw-r--r--src/libstddjb/env_len.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstddjb/env_len.c b/src/libstddjb/env_len.c
index 7e0bea8..f551ce1 100644
--- a/src/libstddjb/env_len.c
+++ b/src/libstddjb/env_len.c
@@ -1,10 +1,11 @@
/* ISC license. */
+#include <sys/types.h>
#include <skalibs/env.h>
-unsigned int env_len (register char const *const *e)
+size_t env_len (char const *const *e)
{
- register unsigned int i = 0 ;
+ size_t i = 0 ;
while (*e++) i++ ;
return i ;
}