diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-02-05 12:14:32 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-02-05 12:14:32 +0100 |
commit | db20fa00ca9880e6e661befee92e19194fa5e69a (patch) | |
tree | 2f1832d48357c53e9285f870478cadaff663b4f4 /xmalloc.h | |
parent | 42e233eab7e6f5eb1a63545c526aa7dd34945bef (diff) |
xmalloc: Make xrealloc() arguments conform to realloc()
xrealloc() has an additional nmemb argument compared to realloc() for
which it should serve as a wrapper. Since we always call with nmemb = 1,
we might as well remove this argument and thus have xrealloc() conform
to the realloc() function prototype.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'xmalloc.h')
-rw-r--r-- | xmalloc.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -13,7 +13,7 @@ extern void *xmallocz(size_t size) __hidden; extern void *xmalloc_aligned(size_t size, size_t alignment) __hidden; extern void *xzmalloc_aligned(size_t size, size_t alignment) __hidden; extern void *xmemdupz(const void *data, size_t len) __hidden; -extern void *xrealloc(void *ptr, size_t nmemb, size_t size) __hidden; +extern void *xrealloc(void *ptr, size_t size) __hidden; extern void xfree_func(void *ptr) __hidden; extern char *xstrdup(const char *str) __hidden; extern char *xstrndup(const char *str, size_t size) __hidden; |