From 27dee9d9f20638ec3de1170262ac1ba583776b1d Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Mon, 23 Jul 2001 22:03:28 +0000 Subject: [PATCH] * 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 --- src/clients/ksu/ChangeLog | 5 +++++ 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 + + * setenv.c: Include stdlib.h, provide prototypes for setenv and + unsetenv before declaration. + 2001-06-26 Ezra Peisach * 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 #include +#include -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; -- 2.26.2