From 324387bfed4855abbba5f30d1aa891f0b6a30950 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 26 Apr 2009 20:22:44 +0200 Subject: [PATCH] util: remove useless asprintf macro Signed-off-by: Julien Danjou --- common/util.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/common/util.h b/common/util.h index c0f905e43..9e84e197c 100644 --- a/common/util.h +++ b/common/util.h @@ -23,7 +23,6 @@ #ifndef AWESOME_COMMON_UTIL_H #define AWESOME_COMMON_UTIL_H -/* asprintf */ #define _GNU_SOURCE #include @@ -339,11 +338,5 @@ void *name_func_lookup(const char *, size_t, const name_func_link_t *); const char * name_func_rlookup(void *, const name_func_link_t *); void a_exec(const char *); -#define a_asprintf(strp, fmt, ...) \ - do { \ - if(asprintf(strp, fmt, ## __VA_ARGS__) < 0) \ - abort(); \ - } while(0) - #endif // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80