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 | |
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')
-rw-r--r-- | lib/nl80211.c | 2 | ||||
-rw-r--r-- | lib/resolv.c | 2 | ||||
-rw-r--r-- | lib/rtnl.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/nl80211.c b/lib/nl80211.c index 8504203..fc24fb8 100644 --- a/lib/nl80211.c +++ b/lib/nl80211.c @@ -61,7 +61,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); } } 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); } } @@ -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); } } |