mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-22 08:06:34 +02:00
j1939: Fix comparison type mismatch warnings
Fix missing (recently introduced) j1939 files that have not been fixed
in commit 46895a41c5 ("Fix comparison type mismatch warnings") from
Gary Bisson.
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
This commit is contained in:
+1
-1
@@ -53,7 +53,7 @@ static const char *libj1939_ifnam(int ifindex)
|
||||
fetch_names();
|
||||
|
||||
for (lp = saved; lp->if_index; ++lp) {
|
||||
if (lp->if_index == ifindex)
|
||||
if (lp->if_index == (unsigned int)ifindex)
|
||||
return lp->if_name;
|
||||
}
|
||||
if (cached) {
|
||||
|
||||
Reference in New Issue
Block a user