summaryrefslogtreecommitdiffhomepage
path: root/lib/rtnl.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-01-18 14:55:14 +0100
committerJo-Philipp Wich <jo@mein.io>2022-01-18 14:56:14 +0100
commit61d0a34fb7501a1f8aa43cfa1063c8a7ca1fb1d2 (patch)
tree66c3cc119db5828b9013e6fd61a1e81186362a65 /lib/rtnl.c
parent4015c2c1769989c20ea7234296eea02a16d1703d (diff)
lib: replace usages of vasprintf() with xvasprintf()
This avoid triggering -Werror=unused-result compilation failures with certain toolchains. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lib/rtnl.c')
-rw-r--r--lib/rtnl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rtnl.c b/lib/rtnl.c
index 4d5cc02..b6a3e38 100644
--- a/lib/rtnl.c
+++ b/lib/rtnl.c
@@ -77,7 +77,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);
}
}