diff options
| author | Ezra Peisach <epeisach@mit.edu> | 2001-07-23 22:03:28 +0000 |
|---|---|---|
| committer | Ezra Peisach <epeisach@mit.edu> | 2001-07-23 22:03:28 +0000 |
| commit | 27dee9d9f20638ec3de1170262ac1ba583776b1d (patch) | |
| tree | 85f1cec1527924293550c78ee9f81ccae99f32a7 /src | |
| parent | 3bc90e2144ce7163fe6b7c01e505f33e81bd2a03 (diff) | |
* setenv.c: Include stdlib.h, provide prototypes for setenv and
unsetenv before declaration.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13627 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/clients/ksu/ChangeLog | 5 | ||||
| -rw-r--r-- | src/clients/ksu/setenv.c | 11 |
2 files changed, 14 insertions, 2 deletions
diff --git a/src/clients/ksu/ChangeLog b/src/clients/ksu/ChangeLog index 6b1fe9d43..84abc29da 100644 --- a/src/clients/ksu/ChangeLog +++ b/src/clients/ksu/ChangeLog @@ -1,3 +1,8 @@ +2001-07-23 Ezra Peisach <epeisach@mit.edu> + + * setenv.c: Include stdlib.h, provide prototypes for setenv and + unsetenv before declaration. + 2001-06-26 Ezra Peisach <epeisach@mit.edu> * authorization.c (find_first_cmd_that_exists): Change xmalloc() diff --git a/src/clients/ksu/setenv.c b/src/clients/ksu/setenv.c index 7563454b8..286721446 100644 --- a/src/clients/ksu/setenv.c +++ b/src/clients/ksu/setenv.c @@ -19,8 +19,16 @@ #include <sys/types.h> #include <stdio.h> +#include <stdlib.h> -static char *_findenv(); +static char *_findenv(char *, int *); + +#ifndef HAVE_SETENV +extern int setenv(char *, char *, int); +#endif +#ifndef HAVE_UNSETENV +extern void unsetenv(char *); +#endif /* * setenv -- @@ -37,7 +45,6 @@ setenv(name, value, rewrite) static int alloced; /* if allocated space before */ register char *C; int l_value, offset; - char *malloc(), *realloc(); if (*value == '=') /* no `=' in value */ ++value; |
