]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Don't compile failover code unless FAILOVER_PROTOCOL is defined.
authorTed Lemon <source@isc.org>
Tue, 23 Feb 1999 19:04:25 +0000 (19:04 +0000)
committerTed Lemon <source@isc.org>
Tue, 23 Feb 1999 19:04:25 +0000 (19:04 +0000)
common/alloc.c

index a2fb08d61068e0b426cd3086348cd8a5ce64c272..62065b0764cbddfc758a262806958d011171a69e 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: alloc.c,v 1.21 1999/02/14 18:40:22 mellon Exp $ Copyright (c) 1995, 1996, 1998 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: alloc.c,v 1.22 1999/02/23 19:04:25 mellon Exp $ Copyright (c) 1995, 1996, 1998 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -323,6 +323,7 @@ void free_pool (pool, name)
        dfree (pool, name);
 }
 
+#if defined (FAILOVER_PROTOCOL)
 struct failover_peer *new_failover_peer (name)
        char *name;
 {
@@ -341,6 +342,7 @@ void free_failover_peer (peer, name)
 {
        dfree (peer, name);
 }
+#endif /* defined (FAILOVER_PROTOCOL) */
 
 struct permit *new_permit (name)
        char *name;