aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--include/stdlib.h2
2 files changed, 2 insertions, 1 deletions
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);