From 61d0a34fb7501a1f8aa43cfa1063c8a7ca1fb1d2 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 18 Jan 2022 14:55:14 +0100 Subject: lib: replace usages of vasprintf() with xvasprintf() This avoid triggering -Werror=unused-result compilation failures with certain toolchains. Signed-off-by: Jo-Philipp Wich --- lib/resolv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/resolv.c') diff --git a/lib/resolv.c b/lib/resolv.c index fe704fa..044b7b7 100644 --- a/lib/resolv.c +++ b/lib/resolv.c @@ -54,7 +54,7 @@ set_error(int errcode, const char *fmt, ...) { if (fmt) { va_start(ap, fmt); - vasprintf(&last_error.msg, fmt, ap); + xvasprintf(&last_error.msg, fmt, ap); va_end(ap); } } -- cgit v1.2.3