unsetenv before declaration.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13627
dc483132-0cff-0310-8789-
dd5450dbe970
+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()
#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 --
static int alloced; /* if allocated space before */
register char *C;
int l_value, offset;
- char *malloc(), *realloc();
if (*value == '=') /* no `=' in value */
++value;