1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cleanup: malloc attributes

This commit is contained in:
Zdenek Kabelac 2013-02-04 20:29:59 +01:00
parent ddeb37f282
commit 6d74ff2bf8

View File

@ -770,15 +770,15 @@ uint32_t dm_tree_get_cookie(struct dm_tree_node *node);
*******************/ *******************/
void *dm_malloc_aux(size_t s, const char *file, int line) void *dm_malloc_aux(size_t s, const char *file, int line)
__attribute__((malloc)) __attribute__((__warn_unused_result__)); __attribute__((__malloc__)) __attribute__((__warn_unused_result__));
void *dm_malloc_aux_debug(size_t s, const char *file, int line) void *dm_malloc_aux_debug(size_t s, const char *file, int line)
__attribute__((__warn_unused_result__)); __attribute__((__warn_unused_result__));
void *dm_zalloc_aux(size_t s, const char *file, int line) void *dm_zalloc_aux(size_t s, const char *file, int line)
__attribute__((malloc)) __attribute__((__warn_unused_result__)); __attribute__((__malloc__)) __attribute__((__warn_unused_result__));
void *dm_zalloc_aux_debug(size_t s, const char *file, int line) void *dm_zalloc_aux_debug(size_t s, const char *file, int line)
__attribute__((__warn_unused_result__)); __attribute__((__warn_unused_result__));
char *dm_strdup_aux(const char *str, const char *file, int line) char *dm_strdup_aux(const char *str, const char *file, int line)
__attribute__((malloc)) __attribute__((__warn_unused_result__)); __attribute__((__malloc__)) __attribute__((__warn_unused_result__));
void dm_free_aux(void *p); void dm_free_aux(void *p);
void *dm_realloc_aux(void *p, unsigned int s, const char *file, int line) void *dm_realloc_aux(void *p, unsigned int s, const char *file, int line)
__attribute__((__warn_unused_result__)); __attribute__((__warn_unused_result__));