summaryrefslogtreecommitdiff
path: root/common/dispatch.c
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>1997-11-29 07:51:09 +0000
committerTed Lemon <source@isc.org>1997-11-29 07:51:09 +0000
commit93ad415e6587366674d638d9ca0dec546371eed9 (patch)
treea77a015ff6e8a452bae5019f82eae7d1437024d0 /common/dispatch.c
parentcd977bedda000cea0c0ef1e20e3f930e3ac977e9 (diff)
downloadisc-dhcp-93ad415e6587366674d638d9ca0dec546371eed9.tar.gz
Use ifp -> ifr_name, not ifr.ifr_name, which isn't yet initialized. errno, not ERRNO.
Diffstat (limited to 'common/dispatch.c')
-rw-r--r--common/dispatch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/dispatch.c b/common/dispatch.c
index 61020a58..c186b9b3 100644
--- a/common/dispatch.c
+++ b/common/dispatch.c
@@ -42,7 +42,7 @@
#ifndef lint
static char copyright[] =
-"$Id: dispatch.c,v 1.45 1997/11/22 07:51:38 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: dispatch.c,v 1.46 1997/11/29 07:51:09 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -129,7 +129,7 @@ void discover_interfaces (state)
#endif
#ifdef SKIP_DUMMY_INTERFACES
- if (!strncmp (ifr.ifr_name, "dummy", 5))
+ if (!strncmp (ifp -> ifr_name, "dummy", 5))
continue;
#endif
@@ -466,7 +466,7 @@ void dispatch ()
/* Not likely to be transitory... */
if (count < 0) {
- if (errno == EAGAIN || ERRNO == EINTR)
+ if (errno == EAGAIN || errno == EINTR)
continue;
else
error ("poll: %m");