summaryrefslogtreecommitdiffstats
path: root/lib/skiplist.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2020-04-08 07:57:15 +0200
committerDonatas Abraitis <donatas.abraitis@gmail.com>2020-04-08 16:15:06 +0200
commitc4efd0f4235d1151a95add06ad5ccb42c7dcff21 (patch)
tree9aaff71f3b3ae6c23457092f6c78a25deec6adb7 /lib/skiplist.c
parentMerge pull request #6180 from mjstapp/fix_bgp_ecomm_sa (diff)
downloadfrr-c4efd0f4235d1151a95add06ad5ccb42c7dcff21.tar.xz
frr-c4efd0f4235d1151a95add06ad5ccb42c7dcff21.zip
*: Do not cast to the same type
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'lib/skiplist.c')
-rw-r--r--lib/skiplist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/skiplist.c b/lib/skiplist.c
index fa25770ef..790bd71c3 100644
--- a/lib/skiplist.c
+++ b/lib/skiplist.c
@@ -624,7 +624,7 @@ void skiplist_test(struct vty *vty)
zlog_debug("%s: (%d:%d)", __func__, i, k);
}
// keys[k] = (void *)random();
- keys[k] = (void *)scramble(k);
+ keys[k] = scramble(k);
if (skiplist_insert(l, keys[k], keys[k]))
zlog_debug("error in insert #%d,#%d", i, k);
}
@@ -649,7 +649,7 @@ void skiplist_test(struct vty *vty)
zlog_debug("<%d:%d>", i, k);
if (skiplist_delete(l, keys[k], keys[k]))
zlog_debug("error in delete");
- keys[k] = (void *)scramble(k ^ 0xf0f0f0f0);
+ keys[k] = scramble(k ^ 0xf0f0f0f0);
if (skiplist_insert(l, keys[k], keys[k]))
zlog_debug("error in insert #%d,#%d", i, k);
}