]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix up mistakes in recent 2.0 pullups.
authorTed Lemon <source@isc.org>
Sun, 14 Feb 1999 19:40:22 +0000 (19:40 +0000)
committerTed Lemon <source@isc.org>
Sun, 14 Feb 1999 19:40:22 +0000 (19:40 +0000)
client/dhclient.c
common/socket.c
includes/dhcpd.h
relay/dhcrelay.c
server/bootp.c
server/confpars.c
sysconfd/sysconfd.c

index ae9a2adfc37927820da6892047d7069a6d925e90..e9a6c2d9309e2c9bb301fd61e99aef9ae0cfe877 100644 (file)
@@ -55,8 +55,8 @@
  */
 
 #ifndef lint
-static char copyright[] =
-"$Id: dhclient.c,v 1.54 1999/02/14 18:37:42 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+static char ocopyright[] =
+"$Id: dhclient.c,v 1.55 1999/02/14 19:40:20 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -1656,11 +1656,11 @@ void make_request (client, lease)
            client -> state == S_REBINDING) {
                memcpy (&client -> packet.ciaddr,
                        lease -> address.iabuf, lease -> address.len);
-               ip -> client -> packet.flags = 0;
+               client -> packet.flags = 0;
        } else {
                memset (&client -> packet.ciaddr, 0,
                        sizeof client -> packet.ciaddr);
-               ip -> client -> packet.flags = htons (BOOTP_BROADCAST);
+               client -> packet.flags = htons (BOOTP_BROADCAST);
        }
 
        memset (&client -> packet.yiaddr, 0,
index 03063edb0f0ba944a14daa8be8fd9a321880fce1..ff9b8f50ebc1eb01bab2cbb6f78e66f01d3026e6 100644 (file)
@@ -50,7 +50,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: socket.c,v 1.28 1999/02/14 18:55:32 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: socket.c,v 1.29 1999/02/14 19:40:21 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -102,7 +102,7 @@ int if_register_socket (info)
        int sock;
        int flag;
 
-#ifndef SO_BINDTODEVICE && !defined (USE_FALLBACK)
+#if !defined (SO_BINDTODEVICE) && !defined (USE_FALLBACK)
        /* Make sure only one interface is registered. */
        if (once)
                error ("The standard socket API can only support %s",
index fd5ef2694e741fd7adf4593bf5d1a9c94fbbb92b..a0a9d0ff254f5ea86ca7970d2adba7237dd05de7 100644 (file)
@@ -1221,7 +1221,7 @@ void maybe_setup_fallback PROTO ((void));
 
 /* dispatch.c */
 extern struct interface_info *interfaces,
-       *dummy_interfaces, fallback_interface;
+       *dummy_interfaces, *fallback_interface;
 extern struct protocol *protocols;
 extern int quiet_interface_discovery;
 extern void (*bootp_packet_handler) PROTO ((struct interface_info *,
index 7bd7c2792a24b157f9544717c7add55ef6c14bb7..b3653c6882acd193ca54e856cf9b348ded9e99fb 100644 (file)
@@ -41,8 +41,8 @@
  */
 
 #ifndef lint
-static char copyright[] =
-"$Id: dhcrelay.c,v 1.17 1999/02/14 19:04:05 mellon Exp $ Copyright (c) 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
+static char ocopyright[] =
+"$Id: dhcrelay.c,v 1.18 1999/02/14 19:40:22 mellon Exp $ Copyright (c) 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
index 438e8c6265054968253c20063cedf74a4c450020..5f7421646b8b62f5e62b9cbb11c2f7898c9cfe6f 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: bootp.c,v 1.36 1999/02/14 19:06:57 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: bootp.c,v 1.37 1999/02/14 19:40:22 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -221,7 +221,7 @@ void bootp (packet)
                        memset (&raw.file [d1.len],
                                0, (sizeof raw.file) - d1.len);
                data_string_forget (&d1, "bootrequest");
-       } else {
+       } else
                memcpy (raw.file, packet -> raw -> file, sizeof raw.file);
 
        /* Choose a server name as above. */
index 10738a3ec5dafc1f36165f85807b6e389978d69b..2b29200aceaf0f8017bdcb8071ff4a7bee313e62 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: confpars.c,v 1.57 1999/02/14 19:08:51 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: confpars.c,v 1.58 1999/02/14 19:40:22 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -1335,7 +1335,6 @@ void parse_subnet_declaration (cfile, share)
        else {
                u = (struct subnet *)0;
                for (t = share -> subnets;
-                    t -> next_sibling; t = t -> next_sibling) {
                     t -> next_sibling; t = t -> next_sibling) {
                        if (subnet_inner_than (subnet, t, 0)) {
                                if (u)
index 86a335126e2de90f2cbaba3ece947e300f08eddb..8434b148887d915f5c01176645aade04ee0ccac1 100644 (file)
@@ -44,7 +44,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: sysconfd.c,v 1.6 1998/11/05 18:36:34 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: sysconfd.c,v 1.7 1999/02/14 19:40:19 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -62,7 +62,6 @@ static void client_input PROTO ((struct protocol *));
 int log_priority;
 int log_perror;
 
-struct interface_info fallback_interface;
 TIME cur_time;
 u_int16_t local_port;