* include/stdlib.h: Change return type of unsetenv to int.
This commit is contained in:
Ulrich Drepper 2001-01-27 08:17:38 +00:00
parent 61f9d0a356
commit 842d709cb3
2 changed files with 2 additions and 1 deletions

View File

@ -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.

View File

@ -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);