`struct prefix` is a superset of `struct prefix_ipv4` and
`struct prefix_ipv6`. Let's let coverity figure it out
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
switch (family) {
case AF_INET:
- memset(prefix, 0, sizeof(struct prefix_ipv4));
+ memset((struct prefix_ipv4 *)prefix, 0,
+ sizeof(struct prefix_ipv4));
break;
case AF_INET6:
- memset(prefix, 0, sizeof(struct prefix_ipv6));
+ memset((struct prefix_ipv6 *)prefix, 0,
+ sizeof(struct prefix_ipv6));
break;
default: