--- contrib/ipfilter/lib/printhost.c (revision 268203) +++ contrib/ipfilter/lib/printhost.c (working copy) @@ -23,9 +23,9 @@ if ((family == -1) || !*addr) PRINTF("any"); else { +#ifdef USE_INET6 void *ptr = addr; -#ifdef USE_INET6 PRINTF("%s", inet_ntop(family, ptr, ipbuf, sizeof(ipbuf))); #else ipa.s_addr = *addr; --- contrib/ipfilter/lib/printhostmask.c (revision 268203) +++ contrib/ipfilter/lib/printhostmask.c (working copy) @@ -25,9 +25,9 @@ if ((family == -1) || ((!addr || !*addr) && (!mask || !*mask))) PRINTF("any"); else { +#ifdef USE_INET6 void *ptr = addr; -#ifdef USE_INET6 PRINTF("%s", inet_ntop(family, ptr, ipbuf, sizeof(ipbuf))); #else ipa.s_addr = *addr; --- contrib/ipfilter/lib/save_v1trap.c (revision 268203) +++ contrib/ipfilter/lib/save_v1trap.c (working copy) @@ -178,7 +178,7 @@ if (ctx->fd >= 0) { ctx->sin.sin_family = AF_INET; ctx->sin.sin_port = htons(162); - if (connect(ctx->fd, &ctx->sin, + if (connect(ctx->fd, (struct sockaddr *)&ctx->sin, sizeof(ctx->sin)) != 0) { snmpv1_destroy(ctx); return NULL; --- contrib/ipfilter/lib/save_v2trap.c (revision 268203) +++ contrib/ipfilter/lib/save_v2trap.c (working copy) @@ -181,7 +181,7 @@ if (ctx->fd >= 0) { ctx->sin.sin_family = AF_INET; ctx->sin.sin_port = htons(162); - if (connect(ctx->fd, &ctx->sin, + if (connect(ctx->fd, (struct sockaddr *)&ctx->sin, sizeof(ctx->sin)) != 0) { snmpv2_destroy(ctx); return NULL;