Mercurial > hg > dhcpcd
changeset 5484:e01d8ea25a42 draft
Clean up some warnings.
| author | Sascha Wildner <saw@online.de> |
|---|---|
| date | Thu, 24 Sep 2020 20:53:56 +0100 |
| parents | f137886e6211 |
| children | 6792cb73e021 |
| files | src/bpf.c src/dhcp6.c src/dhcpcd.c src/ipv6nd.c |
| diffstat | 4 files changed, 5 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/bpf.c Thu Sep 24 03:49:30 2020 +0100 +++ b/src/bpf.c Thu Sep 24 20:53:56 2020 +0100 @@ -70,14 +70,14 @@ (insn)->jt = 0; \ (insn)->jf = 0; \ (insn)->k = (uint32_t)(v); \ -}; +} #define BPF_SET_JUMP(insn, c, v, t, f) { \ (insn)->code = (c); \ (insn)->jt = (t); \ (insn)->jf = (f); \ (insn)->k = (uint32_t)(v); \ -}; +} size_t bpf_frame_header_len(const struct interface *ifp) @@ -585,9 +585,6 @@ }; #define BPF_BOOTP_ETHER_LEN __arraycount(bpf_bootp_ether) -#define BOOTP_MIN_SIZE sizeof(struct ip) + sizeof(struct udphdr) + \ - sizeof(struct bootp) - static const struct bpf_insn bpf_bootp_base[] = { /* Make sure it's an IPv4 packet. */ BPF_STMT(BPF_LD + BPF_B + BPF_IND, 0),
--- a/src/dhcp6.c Thu Sep 24 03:49:30 2020 +0100 +++ b/src/dhcp6.c Thu Sep 24 20:53:56 2020 +0100 @@ -147,7 +147,7 @@ uint16_t dhcp6_opt; }; -const struct dhcp_compat dhcp_compats[] = { +static const struct dhcp_compat dhcp_compats[] = { { DHO_DNSSERVER, D6_OPTION_DNS_SERVERS }, { DHO_HOSTNAME, D6_OPTION_FQDN }, { DHO_DNSDOMAIN, D6_OPTION_FQDN },
--- a/src/dhcpcd.c Thu Sep 24 03:49:30 2020 +0100 +++ b/src/dhcpcd.c Thu Sep 24 20:53:56 2020 +0100 @@ -26,7 +26,7 @@ * SUCH DAMAGE. */ -const char dhcpcd_copyright[] = "Copyright (c) 2006-2020 Roy Marples"; +static const char dhcpcd_copyright[] = "Copyright (c) 2006-2020 Roy Marples"; #include <sys/file.h> #include <sys/ioctl.h>
--- a/src/ipv6nd.c Thu Sep 24 03:49:30 2020 +0100 +++ b/src/ipv6nd.c Thu Sep 24 20:53:56 2020 +0100 @@ -1223,7 +1223,7 @@ if (rap->willexpire) new_data = true; loglevel = new_rap || rap->willexpire || !rap->isreachable ? - LOG_INFO : LOG_DEBUG, + LOG_INFO : LOG_DEBUG; logmessage(loglevel, "%s: Router Advertisement from %s", ifp->name, rap->sfrom);
