diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-09-29 09:17:56 +0300 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-09-29 10:24:16 +0300 |
| commit | 02d8b80ce4cc4a741ac796df453668b43b3e5d0f (patch) | |
| tree | d239cb951d40fb8da5e1402863719660d5b55be6 /lib/if.c | |
| parent | c323b930eaeb779a973e95b1202223164a5e2b02 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |
