]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Use ifp -> ifr_name, not ifr.ifr_name, which isn't yet initialized. errno, not...
authorTed Lemon <source@isc.org>
Sat, 29 Nov 1997 07:51:09 +0000 (07:51 +0000)
committerTed Lemon <source@isc.org>
Sat, 29 Nov 1997 07:51:09 +0000 (07:51 +0000)
common/dispatch.c

index 61020a58c861e7a3e599d4efdb0b99055c7819ca..c186b9b34efc5305ca91abd844ba0ca8532d3890 100644 (file)
@@ -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");