summaryrefslogtreecommitdiff
path: root/apps/netutils/dhcpc/dhcpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/netutils/dhcpc/dhcpc.c')
-rw-r--r--apps/netutils/dhcpc/dhcpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/netutils/dhcpc/dhcpc.c b/apps/netutils/dhcpc/dhcpc.c
index dc80988bb..b5551c6f1 100644
--- a/apps/netutils/dhcpc/dhcpc.c
+++ b/apps/netutils/dhcpc/dhcpc.c
@@ -492,7 +492,7 @@ int dhcpc_request(void *handle, struct dhcpc_state *presult)
* Then loop and send the DISCOVER command again.
*/
- else if (*get_errno_ptr() != EAGAIN)
+ else if (errno != EAGAIN)
{
/* An error other than a timeout was received -- error out */
@@ -570,7 +570,7 @@ int dhcpc_request(void *handle, struct dhcpc_state *presult)
* 3 times).
*/
- else if (*get_errno_ptr() != EAGAIN)
+ else if (errno != EAGAIN)
{
/* An error other than a timeout was received */