diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2021-10-31 22:30:38 -0700 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-10-31 22:36:46 -0700 |
| commit | 9f8a38414b12f4a2716763432271ec9c3b201604 (patch) | |
| tree | 8aa1ec7f48e3b2349d2f6ff4a032973543df30e7 /scripts/git-hooks/commit-msg | |
| parent | maint: enable -Wsuggest-attribute=format (diff) | |
| download | coreutils-9f8a38414b12f4a2716763432271ec9c3b201604.tar.gz coreutils-9f8a38414b12f4a2716763432271ec9c3b201604.zip | |
maint: add function attributes to .h files
Add _GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_MALLOC,
_GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_DALLOC_FREE,
_GL_ATTRIBUTE_RETURNS_NONNULL to .h files when appropriate.
* gl/lib/mbsalign.h, gl/lib/randperm.h, src/chown-core.h:
Include stdlib.h, for the benefit of _GL_ATTRIBUTE_DALLOC_FREE.
* gl/lib/randread.c (randread_free_body): New static function.
(randread_new, randread_free): Use it.
* src/copy.c (valid_options): Remove assert that is no longer
needed because it is now checked statically.
Diffstat (limited to 'scripts/git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions
