From: Ted Lemon Date: Tue, 23 Feb 1999 19:04:25 +0000 (+0000) Subject: Don't compile failover code unless FAILOVER_PROTOCOL is defined. X-Git-Tag: V3-ALPHA-19990315~62 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2a3318abcb0967414772c0373623276b59631004;p=thirdparty%2Fdhcp.git Don't compile failover code unless FAILOVER_PROTOCOL is defined. --- diff --git a/common/alloc.c b/common/alloc.c index a2fb08d61..62065b076 100644 --- a/common/alloc.c +++ b/common/alloc.c @@ -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;