From: krw Date: Sun, 18 Jun 2017 11:26:14 +0000 (+0000) Subject: Make 'DEBUG' compile again. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=407451e5569d39649c6c9ad96defef8199207033;p=openbsd Make 'DEBUG' compile again. --- diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index fe02ad0d21f..b5dd167de29 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.432 2017/06/17 20:23:17 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.433 2017/06/18 11:26:14 krw Exp $ */ /* * Copyright 2004 Henning Brauer @@ -881,7 +881,7 @@ dhcpoffer(struct interface_info *ifi, struct option_data *options, char *info) if (ifi->state != S_SELECTING) { #ifdef DEBUG - log_debug("Unexpected %s. State #%d.", info, client->state); + log_debug("Unexpected %s. State #%d.", info, ifi->state); #endif /* DEBUG */ return; } @@ -922,7 +922,7 @@ dhcpack(struct interface_info *ifi, struct option_data *options, char *info) ifi->state != S_RENEWING && ifi->state != S_REBINDING) { #ifdef DEBUG - log_debug("Unexpected %s. State #%d", info, client->state); + log_debug("Unexpected %s. State #%d", info, ifi->state); #endif /* DEBUG */ return; } @@ -954,7 +954,7 @@ dhcpnak(struct interface_info *ifi, struct option_data *options, char *info) ifi->state != S_RENEWING && ifi->state != S_REBINDING) { #ifdef DEBUG - log_debug("Unexpected %s. State #%d", info, client->state); + log_debug("Unexpected %s. State #%d", info, ifi->state); #endif /* DEBUG */ return; }