From 04e1f74afe0efe4d09affed9b9fee08847b78ab9 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Tue, 12 Jan 2010 19:49:40 +0100 Subject: Fix return type of vasprintf, asprintf to silence warnings --- src/debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/debug.c b/src/debug.c index 1f9aff1..cf93e01 100644 --- a/src/debug.c +++ b/src/debug.c @@ -53,7 +53,7 @@ static void debug_print_line(const char *func, const char *file, int line, const strftime(str_time, 254, "%H:%M:%S", localtime (&the_time)); /* generate header text */ - asprintf(&header, "%s %s %s:%d", str_time, file, func, line); + (void)asprintf(&header, "%s %s %s:%d", str_time, file, func, line); free (str_time); /* always in light green */ @@ -79,7 +79,7 @@ inline void debug_info_real(const char *func, const char *file, int line, const /* run the real fprintf */ va_start(args, format); - vasprintf(&buffer, format, args); + (void)vasprintf(&buffer, format, args); va_end(args); debug_print_line(func, file, line, buffer); -- cgit v1.1-32-gdbae