16f80fd115
The functions to lookup IPv4 and IPv6 were both using opaque pointers (void *) when they should use a typed pointer instead. The IP headers are not modified during lookup. Get rid of unnecessary cast on the return from the function. Replace complex trigraph expression with simple if to improve readability. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>