summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-09-29 09:17:56 +0300
committerDonatas Abraitis <donatas@opensourcerouting.org>2023-09-29 10:24:16 +0300
commit02d8b80ce4cc4a741ac796df453668b43b3e5d0f (patch)
treed239cb951d40fb8da5e1402863719660d5b55be6 /lib/if.c
parentc323b930eaeb779a973e95b1202223164a5e2b02 (diff)
*: Do not cast to the same type as the destination is
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c4
1 files changed, 2 insertions, 2 deletions
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)