From c252143d5147e541a42bf7bb2530e12c62962576 Mon Sep 17 00:00:00 2001 From: Thomas Jansen Date: Tue, 2 Dec 2008 02:33:24 +0100 Subject: replaced mpd_malloc by G_GNUC_MALLOC We want to remove gcc.h eventually. This takes care of all the G_GNUC_MALLOC macros. --- src/utils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/utils.c') 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; -- cgit v1.2.3