From 93ad415e6587366674d638d9ca0dec546371eed9 Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Sat, 29 Nov 1997 07:51:09 +0000 Subject: [PATCH] Use ifp -> ifr_name, not ifr.ifr_name, which isn't yet initialized. errno, not ERRNO. --- common/dispatch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/dispatch.c b/common/dispatch.c index 61020a58c..c186b9b34 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"); -- 2.47.2