Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
char *text;
int r;
- r = util_vasprintf(&text, fmt, args);
+ r = vasprintf(&text, fmt, args);
if (r < 0)
return;
char *str = NULL;
va_start(va, fmt);
- int ret = util_vasprintf(&str, fmt, va);
+ int ret = vasprintf(&str, fmt, va);
va_end(va);
if (ret >= 0) {
va_end(ap);
}
+#define vasprintf util_vasprintf
static inline int
util_vasprintf(char **ret, const char *format, va_list ap)
{
#define util_vsnprintf vsnprintf
#define util_snprintf snprintf
-#define util_vasprintf vasprintf
#endif