diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2019-04-11 22:00:15 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2019-04-11 22:07:36 +0200 |
commit | 0e048ac6bffe3567be99e9e24cf739838f7dbfa5 (patch) | |
tree | 0ce63f8adc596d89491d6809fb55cfde63f5b513 /src | |
parent | 83698f6b2a7abe0feb3da85d9991c2efe1ed5b6c (diff) |
treewide: fix compiler warnings
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/dhcpv6-ia.c | 2 | ||||
-rw-r--r-- | src/odhcpd.c | 13 |
2 files changed, 1 insertions, 14 deletions
diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index 9db6a54..007b904 100644 --- a/src/dhcpv6-ia.c +++ b/src/dhcpv6-ia.c @@ -265,7 +265,7 @@ struct write_ctxt { int buf_idx; }; -void dhcpv6_write_ia_addr(struct in6_addr *addr, int prefix, _unused uint32_t pref, +static void dhcpv6_write_ia_addr(struct in6_addr *addr, int prefix, _unused uint32_t pref, _unused uint32_t valid, void *arg) { struct write_ctxt *ctxt = (struct write_ctxt *)arg; diff --git a/src/odhcpd.c b/src/odhcpd.c index fafa3f6..8906384 100644 --- a/src/odhcpd.c +++ b/src/odhcpd.c @@ -300,19 +300,6 @@ struct interface* odhcpd_get_interface_by_index(int ifindex) return NULL; } -struct interface* odhcpd_get_master_interface(void) -{ - struct interface *iface; - - avl_for_each_element(&interfaces, iface, avl) { - if (iface->master) - return iface; - } - - return NULL; -} - - /* Convenience function to receive and do basic validation of packets */ static void odhcpd_receive_packets(struct uloop_fd *u, _unused unsigned int events) { |