summaryrefslogtreecommitdiff
path: root/misc/setenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/setenv.c')
-rw-r--r--misc/setenv.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/misc/setenv.c b/misc/setenv.c
index 12d984afe..daf1e02f4 100644
--- a/misc/setenv.c
+++ b/misc/setenv.c
@@ -104,12 +104,9 @@ static char **last_environ;
must be used directly. This is all complicated by the fact that we try
to reuse values once generated for a `setenv' call since we can never
free the strings. */
-int
-__add_to_environ (name, value, combined, replace)
- const char *name;
- const char *value;
- const char *combined;
- int replace;
+static int
+__add_to_environ (const char *name, const char *value, const char *combined,
+ int replace)
{
register char **ep;
register size_t size;
@@ -292,7 +289,7 @@ unsetenv (name)
never made it. Nevertheless the POSIX.9 standard (POSIX bindings
for Fortran 77) requires this function. */
int
-clearenv ()
+clearenv (void)
{
LOCK;