diff options
Diffstat (limited to 'newlib/libc/argz/envz_get.c')
-rw-r--r-- | newlib/libc/argz/envz_get.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/newlib/libc/argz/envz_get.c b/newlib/libc/argz/envz_get.c index dae51be..718806e 100644 --- a/newlib/libc/argz/envz_get.c +++ b/newlib/libc/argz/envz_get.c @@ -10,22 +10,22 @@ #include <stdlib.h> #include <envz.h> -extern int buf_findstr(const char *str, char **buf, size_t *buf_len); +#include "buf_findstr.h" char * envz_get (const char *envz, size_t envz_len, const char *name) { - const char *buf_ptr = envz; + char *buf_ptr = (char *)envz; size_t buf_len = envz_len; while(buf_len) { - if (buf_findstr(name, &buf_ptr, &buf_len)) + if (_buf_findstr(name, &buf_ptr, &buf_len)) { if (*buf_ptr == '=') { buf_ptr++; - return buf_ptr; + return (char *)buf_ptr; } else { |