diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-01-18 14:55:14 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-01-18 14:56:14 +0100 |
commit | 61d0a34fb7501a1f8aa43cfa1063c8a7ca1fb1d2 (patch) | |
tree | 66c3cc119db5828b9013e6fd61a1e81186362a65 /lib/rtnl.c | |
parent | 4015c2c1769989c20ea7234296eea02a16d1703d (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } } |