diff options
| author | Sascha Wildner <saw@online.de> | 2020-09-24 20:53:56 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-09-24 20:53:56 +0100 |
| commit | 61b2e192fda8cf3ab392f519806eb3bca35c15db (patch) | |
| tree | 102c28ae89385609a9196994bb376ae67e046f3c | |
| parent | cce22f81eec70c266071d5d3cfdf3931df203e59 (diff) | |
| download | dhcpcd-61b2e192fda8cf3ab392f519806eb3bca35c15db.tar.xz | |
Clean up some warnings.
| -rw-r--r-- | src/bpf.c | 7 | ||||
| -rw-r--r-- | src/dhcp6.c | 2 | ||||
| -rw-r--r-- | src/dhcpcd.c | 2 | ||||
| -rw-r--r-- | src/ipv6nd.c | 2 |
4 files changed, 5 insertions, 8 deletions
@@ -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 @@ static const struct bpf_insn bpf_bootp_ether[] = { }; #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), diff --git a/src/dhcp6.c b/src/dhcp6.c index 2cf40793..49412782 100644 --- a/src/dhcp6.c +++ b/src/dhcp6.c @@ -147,7 +147,7 @@ struct dhcp_compat { 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 }, diff --git a/src/dhcpcd.c b/src/dhcpcd.c index b49cf95c..e193b6ee 100644 --- a/src/dhcpcd.c +++ b/src/dhcpcd.c @@ -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> diff --git a/src/ipv6nd.c b/src/ipv6nd.c index d1cc4efa..4afbf1fb 100644 --- a/src/ipv6nd.c +++ b/src/ipv6nd.c @@ -1223,7 +1223,7 @@ ipv6nd_handlera(struct dhcpcd_ctx *ctx, 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); |
