treewide: Fix compilation on libmusl, replace error() by err()

Reported-by: Brandon Ros <brandonros1@gmail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
Marc Kleine-Budde
2019-10-30 11:59:49 +01:00
parent 7e9bc7719b
commit 791b6de786
6 changed files with 78 additions and 84 deletions
+1 -2
View File
@@ -16,7 +16,6 @@
#include <errno.h>
#include <inttypes.h>
#include <error.h>
#include <unistd.h>
#include <fcntl.h>
#include <net/if.h>
@@ -42,7 +41,7 @@ static inline void fetch_names(void)
if (!saved) {
saved = if_nameindex();
if (!saved)
error(1, errno, "if_nameindex()");
err(1, errno, "if_nameindex()");
}
}