aboutsummaryrefslogtreecommitdiff
path: root/string/argz-create.c
diff options
context:
space:
mode:
Diffstat (limited to 'string/argz-create.c')
-rw-r--r--string/argz-create.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/string/argz-create.c b/string/argz-create.c
index fab3222..2eea911 100644
--- a/string/argz-create.c
+++ b/string/argz-create.c
@@ -26,11 +26,12 @@
ARGZ, and the total length in LEN. If a memory allocation error occurs,
ENOMEM is returned, otherwise 0. */
error_t
-__argz_create (char **argv, char **argz, size_t *len)
+__argz_create (char *const argv[], char **argz, size_t *len)
{
int argc;
size_t tlen = 0;
- char *p, **ap;
+ char *const *ap;
+ char *p;
for (argc = 0; argv[argc] != NULL; ++argc)
tlen += strlen (argv[argc]);