summaryrefslogtreecommitdiff
path: root/src/execline/emptyenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/execline/emptyenv.c')
-rw-r--r--src/execline/emptyenv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/execline/emptyenv.c b/src/execline/emptyenv.c
index cae8869..90d72d1 100644
--- a/src/execline/emptyenv.c
+++ b/src/execline/emptyenv.c
@@ -1,5 +1,6 @@
/* ISC license. */
+#include <sys/types.h>
#include <skalibs/sgetopt.h>
#include <skalibs/bytestr.h>
#include <skalibs/strerr2.h>
@@ -77,7 +78,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
{
static char const *const list[12] = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "#", "ELGETOPT_" } ;
stralloc sa = STRALLOC_ZERO ;
- unsigned int envlen = env_len(envp) ;
+ size_t envlen = env_len(envp) ;
int n = el_popenv(&sa, envp, envlen, flagpos ? list : list + 11, 11 * flagpos + flagopt) ;
if (n < 0) strerr_diefu1sys(111, "pop current execline environment") ;
{