Add nonnull attribute to unsetenv declaration.

This commit is contained in:
Ulrich Drepper 2010-01-13 23:06:59 -08:00
parent 5a7af22fbb
commit e26dfa69f5
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2010-01-13 Ulrich Drepper <drepper@redhat.com>
* stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
2010-01-12 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.

View File

@ -586,7 +586,7 @@ extern int setenv (__const char *__name, __const char *__value, int __replace)
__THROW __nonnull ((2));
/* Remove the variable NAME from the environment. */
extern int unsetenv (__const char *__name) __THROW;
extern int unsetenv (__const char *__name) __THROW __nonnull ((1));
#endif
#ifdef __USE_MISC