summaryrefslogtreecommitdiffstats
path: root/lib/darr.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-09-29 08:17:56 +0200
committerDonatas Abraitis <donatas@opensourcerouting.org>2023-09-29 09:24:16 +0200
commit02d8b80ce4cc4a741ac796df453668b43b3e5d0f (patch)
treed239cb951d40fb8da5e1402863719660d5b55be6 /lib/darr.c
parentzebra: Drop new lines from zlog_debug for dpdk debug messages (diff)
downloadfrr-02d8b80ce4cc4a741ac796df453668b43b3e5d0f.tar.xz
frr-02d8b80ce4cc4a741ac796df453668b43b3e5d0f.zip
*: Do not cast to the same type as the destination is
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'lib/darr.c')
-rw-r--r--lib/darr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/darr.c b/lib/darr.c
index 2c8b7b877..f0ef5c90b 100644
--- a/lib/darr.c
+++ b/lib/darr.c
@@ -109,6 +109,6 @@ void *__darr_insert_n(void *a, uint at, uint count, size_t esize, bool zero)
memset(_a_at(at), 0, esize * count);
}
- return (void *)a;
+ return a;
#undef _a_at
}