Fix warning in IP2BIN.
PATCH 3/4 Fix warning in IP2BIN.
This patch cast a expression to avoid a warning.
Signed-off-by Eric Leblond <[email protected]>
--- filter/ulogd_filter_IP2BIN.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
filter/ulogd_filter_IP2BIN.c +1 -1
@@ -137,7 +137,7 @@ static char *ip2bin(struct ulogd_key* inp, int index, char family)switch (family) {case AF_INET6 : - addr =GET_VALUE (inp, index).ui128; + addr = (struct in6_addr *)GET_VALUE (inp, index).ui128;break ;case AF_INET :/* Convert IPv4 to IPv4 in IPv6 */
Signature · 1 line
1.5.4.3