mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-04 22:09:57 +02:00
libj1939: fix missing include and syntax
Include err.h and remove the unneeded parameter errno and
its header include.
Fixes: 791b6de ("treewide: Fix compilation on libmusl, replace error() by err()")
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
This commit is contained in:
+2
-2
@@ -13,7 +13,7 @@
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <err.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#include <unistd.h>
|
||||
@@ -41,7 +41,7 @@ static inline void fetch_names(void)
|
||||
if (!saved) {
|
||||
saved = if_nameindex();
|
||||
if (!saved)
|
||||
err(1, errno, "if_nameindex()");
|
||||
err(1, "if_nameindex()");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user