From 842d709cb30d5c42e27ab4ba255f43a8e5e8c0d9 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 27 Jan 2001 08:17:38 +0000 Subject: [PATCH] Update. * include/stdlib.h: Change return type of unsetenv to int. --- ChangeLog | 1 + include/stdlib.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 09cc0f2092..2698f78ab5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ (setenv, unsetenv): Make available for __USE_XOPEN2K. Change return type of unsetenv to int. (qecvt, qgcvt, qfcvt): Declare only if __USE_MISC. + * include/stdlib.h: Change return type of unsetenv to int. * sysdeps/generic/setenv.c (unsetenv): Change return type to int. Return -1 and set errno if parameter is invalid. * stdlib/random.c (__random): Change return value type to long. diff --git a/include/stdlib.h b/include/stdlib.h index d3c8779fcd..41c5b780ed 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -40,7 +40,7 @@ extern int __drand48_iterate (unsigned short int __xsubi[3], extern int __setenv (__const char *__name, __const char *__value, int __replace); -extern void __unsetenv (__const char *__name); +extern int __unsetenv (__const char *__name); extern int __clearenv (void); extern char *__canonicalize_file_name (__const char *__name); extern char *__realpath (__const char *__name, char *__resolved);