mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-19 15:33:56 +00:00
Fix a compilation error with some compilers: __attribute__
requires two parenthesis for its argument, but instead of using __attribute__ directly, use the appropriate __nonnull macro from cdefs.h.
This commit is contained in:
parent
9c12d78912
commit
7d0d2b0f86
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=235780
@ -55,13 +55,11 @@ int mallctlbymib(const size_t *mib, size_t miblen, void *oldp,
|
||||
#define ALLOCM_ERR_OOM 1
|
||||
#define ALLOCM_ERR_NOT_MOVED 2
|
||||
|
||||
int allocm(void **ptr, size_t *rsize, size_t size, int flags)
|
||||
__attribute__(nonnull(1));
|
||||
int allocm(void **ptr, size_t *rsize, size_t size, int flags) __nonnull(1);
|
||||
int rallocm(void **ptr, size_t *rsize, size_t size, size_t extra,
|
||||
int flags) __attribute__(nonnull(1));
|
||||
int sallocm(const void *ptr, size_t *rsize, int flags)
|
||||
__attribute__(nonnull(1));
|
||||
int dallocm(void *ptr, int flags) __attribute__(nonnull(1));
|
||||
int flags) __nonnull(1);
|
||||
int sallocm(const void *ptr, size_t *rsize, int flags) __nonnull(1);
|
||||
int dallocm(void *ptr, int flags) __nonnull(1);
|
||||
int nallocm(size_t *rsize, size_t size, int flags);
|
||||
__END_DECLS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user