Skip to content

Commit

Permalink
Trivial warning fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
niklata committed Oct 20, 2020
1 parent e6b5247 commit bb7841f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sockd.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ static int create_raw_listen_socket(bool *using_bpf)
};
static const struct sock_fprog sfp_dhcp = {
.len = sizeof sf_dhcp / sizeof sf_dhcp[0],
.filter = (struct sock_filter const * const)sf_dhcp,
.filter = (struct sock_filter * const)sf_dhcp,
};
struct sockaddr_ll sa = {
.sll_family = AF_PACKET,
Expand Down Expand Up @@ -338,7 +338,7 @@ static bool arp_set_bpf_basic(int fd)
};
static const struct sock_fprog sfp_arp = {
.len = sizeof sf_arp / sizeof sf_arp[0],
.filter = (struct sock_filter const * const)sf_arp,
.filter = (struct sock_filter * const)sf_arp,
};
int ret = setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, &sfp_arp,
sizeof sfp_arp) != -1;
Expand Down

0 comments on commit bb7841f

Please sign in to comment.