aboutsummaryrefslogtreecommitdiff
path: root/src/xz/util.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2011-01-19 11:45:35 +0200
committerLasse Collin <lasse.collin@tukaani.org>2011-01-19 11:45:35 +0200
commit9d542ceebcbe40b174169c132ccfcdc720ca7089 (patch)
tree5ed9f931225122af289863e6d53aceb2f1013f0a /src/xz/util.h
parentMerge branch 'v5.0' (diff)
parentUpdated THANKS. (diff)
downloadxz-9d542ceebcbe40b174169c132ccfcdc720ca7089.tar.xz
Merge branch 'v5.0'
Diffstat (limited to 'src/xz/util.h')
-rw-r--r--src/xz/util.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xz/util.h b/src/xz/util.h
index fea8cc66..4b2d3e2f 100644
--- a/src/xz/util.h
+++ b/src/xz/util.h
@@ -19,11 +19,12 @@
/// \brief Safe realloc() that never returns NULL
-extern void *xrealloc(void *ptr, size_t size);
+extern void *xrealloc(void *ptr, size_t size)
+ lzma_attribute((malloc)) lzma_attr_alloc_size(2);
/// \brief Safe strdup() that never returns NULL
-extern char *xstrdup(const char *src);
+extern char *xstrdup(const char *src) lzma_attribute((malloc));
/// \brief Fancy version of strtoull()