diff options
author | Thomas Jansen <mithi@mithi.net> | 2008-12-02 02:33:24 +0100 |
---|---|---|
committer | Thomas Jansen <mithi@mithi.net> | 2008-12-02 02:33:24 +0100 |
commit | c252143d5147e541a42bf7bb2530e12c62962576 (patch) | |
tree | f7b043b1e34c615b7b5db6de28b1ce3d239b6125 /src/utils.c | |
parent | 2720585731eb6a39fece86fb675a644b8ea803ae (diff) | |
download | mpd-c252143d5147e541a42bf7bb2530e12c62962576.tar.gz mpd-c252143d5147e541a42bf7bb2530e12c62962576.tar.xz mpd-c252143d5147e541a42bf7bb2530e12c62962576.zip |
replaced mpd_malloc by G_GNUC_MALLOC
We want to remove gcc.h eventually. This takes care of all the
G_GNUC_MALLOC macros.
Diffstat (limited to '')
-rw-r--r-- | src/utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils.c b/src/utils.c index 892f6f39f..9b75748da 100644 --- a/src/utils.c +++ b/src/utils.c @@ -76,7 +76,7 @@ int ipv6Supported(void) #endif } -mpd_malloc char *xstrdup(const char *s) +G_GNUC_MALLOC char *xstrdup(const char *s) { char *ret = strdup(s); if (G_UNLIKELY(!ret)) @@ -86,7 +86,7 @@ mpd_malloc char *xstrdup(const char *s) /* borrowed from git :) */ -mpd_malloc void *xmalloc(size_t size) +G_GNUC_MALLOC void *xmalloc(size_t size) { void *ret; @@ -98,7 +98,7 @@ mpd_malloc void *xmalloc(size_t size) return ret; } -mpd_malloc void *xrealloc(void *ptr, size_t size) +G_GNUC_MALLOC void *xrealloc(void *ptr, size_t size) { void *ret = realloc(ptr, size); @@ -113,7 +113,7 @@ mpd_malloc void *xrealloc(void *ptr, size_t size) return ret; } -mpd_malloc void *xcalloc(size_t nmemb, size_t size) +G_GNUC_MALLOC void *xcalloc(size_t nmemb, size_t size) { void *ret; |