Skip to content

Commit

Permalink
Add nonnull attribute to unsetenv declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Jan 14, 2010
1 parent 5a7af22 commit e26dfa6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion stdlib/stdlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e26dfa6

Please sign in to comment.