diff options
| author | Roy Marples <roy@marples.name> | 2020-09-30 16:14:39 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-09-30 16:14:39 +0100 |
| commit | 3ef993986b2ac5aca49ecf10f04fe5fc067473cd (patch) | |
| tree | 060adfc853808642adf3efe5c9a0e2d5f61cd91d /src/dhcpcd.c | |
| parent | 6b5a6be3a2f1532abb914ae4e3ade8c8701821ec (diff) | |
| download | dhcpcd-3ef993986b2ac5aca49ecf10f04fe5fc067473cd.tar.xz | |
BSD: Fix compile for non NetBSD
Diffstat (limited to 'src/dhcpcd.c')
| -rw-r--r-- | src/dhcpcd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/dhcpcd.c b/src/dhcpcd.c index 1fd0ae18..55bbff0d 100644 --- a/src/dhcpcd.c +++ b/src/dhcpcd.c @@ -765,7 +765,7 @@ dhcpcd_handlecarrier(struct interface *ifp, int carrier, unsigned int flags) /* BSD does not emit RTM_NEWADDR or RTM_CHGADDR when the * hardware address changes so we have to go * through the disovery process to work it out. */ - dhcpcd_handleinterface(ctx, 0, ifp->name); + dhcpcd_handleinterface(ifp->ctx, 0, ifp->name); #endif if (ifp->wireless) { uint8_t ossid[IF_SSIDLEN]; @@ -1017,14 +1017,13 @@ dhcpcd_activateinterface(struct interface *ifp, unsigned long long options) int dhcpcd_handleinterface(void *arg, int action, const char *ifname) { - struct dhcpcd_ctx *ctx; + struct dhcpcd_ctx *ctx = arg; struct ifaddrs *ifaddrs; struct if_head *ifs; struct interface *ifp, *iff; const char * const argv[] = { ifname }; int e; - ctx = arg; if (action == -1) { ifp = if_find(ctx->ifaces, ifname); if (ifp == NULL) { |
