summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-01-27 08:17:38 +0000
committerUlrich Drepper <drepper@redhat.com>2001-01-27 08:17:38 +0000
commit842d709cb30d5c42e27ab4ba255f43a8e5e8c0d9 (patch)
tree53da39b6140c3d15d9fc853f965fd80ad928aa8b
parent61f9d0a356f84837e3e3af27831ec7d8070f15b7 (diff)
downloadglibc-842d709cb30d5c42e27ab4ba255f43a8e5e8c0d9.tar.gz
glibc-842d709cb30d5c42e27ab4ba255f43a8e5e8c0d9.tar.xz
glibc-842d709cb30d5c42e27ab4ba255f43a8e5e8c0d9.zip
Update.
	* include/stdlib.h: Change return type of unsetenv to int.
-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);