mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-22 16:09:52 +02:00
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:
+1
-2
@@ -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()");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user