From 02d8b80ce4cc4a741ac796df453668b43b3e5d0f Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Fri, 29 Sep 2023 09:17:56 +0300 Subject: *: Do not cast to the same type as the destination is Signed-off-by: Donatas Abraitis --- lib/if.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/if.c') diff --git a/lib/if.c b/lib/if.c index 6f567861d1..48c01af882 100644 --- a/lib/if.c +++ b/lib/if.c @@ -98,8 +98,8 @@ int if_cmp_name_func(const char *p1, const char *p2) if (!*p2) return 1; - x1 = strtol(p1, (char **)&tmp1, 10); - x2 = strtol(p2, (char **)&tmp2, 10); + x1 = strtol(p1, &tmp1, 10); + x2 = strtol(p2, &tmp2, 10); /* let's compare numbers now */ if (x1 < x2) -- cgit v1.2.3