check_one_kline: Fix compiler warning

This commit is contained in:
Simon Arlott 2019-08-31 15:31:45 +01:00
parent c6e707ae76
commit a006add93c
No known key found for this signature in database
GPG key ID: 49BFFEEFD4C3ED53

View file

@ -601,7 +601,7 @@ check_one_kline(struct ConfItem *kline)
int bits;
struct rb_sockaddr_storage sockaddr;
masktype = parse_netmask(kline->host, (struct sockaddr *)&sockaddr, &bits);
masktype = parse_netmask(kline->host, (struct sockaddr_storage *)&sockaddr, &bits);
switch (masktype) {
case HM_IPV4: