diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2011-05-17 11:54:38 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2011-05-17 12:27:22 +0300 |
commit | afcff45cee04c5c7d9c333504046ffb63d1418b5 (patch) | |
tree | f5f60eca9b8692d148bd742aee93e0f96a5845a3 /src/xz/util.h | |
parent | Update THANKS. (diff) | |
download | xz-afcff45cee04c5c7d9c333504046ffb63d1418b5.tar.xz |
Add underscores to attributes (__attribute((__foo__))).
Diffstat (limited to 'src/xz/util.h')
-rw-r--r-- | src/xz/util.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xz/util.h b/src/xz/util.h index 4b2d3e2f..a2516bf9 100644 --- a/src/xz/util.h +++ b/src/xz/util.h @@ -20,11 +20,11 @@ /// \brief Safe realloc() that never returns NULL extern void *xrealloc(void *ptr, size_t size) - lzma_attribute((malloc)) lzma_attr_alloc_size(2); + lzma_attribute((__malloc__)) lzma_attr_alloc_size(2); /// \brief Safe strdup() that never returns NULL -extern char *xstrdup(const char *src) lzma_attribute((malloc)); +extern char *xstrdup(const char *src) lzma_attribute((__malloc__)); /// \brief Fancy version of strtoull() @@ -102,7 +102,7 @@ extern const char *uint64_to_nicestr(uint64_t value, /// A maximum of *left bytes is written starting from *pos. *pos and *left /// are updated accordingly. extern void my_snprintf(char **pos, size_t *left, const char *fmt, ...) - lzma_attribute((format(printf, 3, 4))); + lzma_attribute((__format__(__printf__, 3, 4))); /// \brief Check if filename is empty and print an error message |