From: Ted Lemon Date: Wed, 7 Jun 2000 00:28:21 +0000 (+0000) Subject: Don't use dhcp_lease_free unless COMPACT_LEASES is defined. X-Git-Tag: V3-BETA-2-PATCH-1~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9f0d7c31b64d58e751158f5e7648caec4b43408;p=thirdparty%2Fdhcp.git Don't use dhcp_lease_free unless COMPACT_LEASES is defined. --- diff --git a/server/omapi.c b/server/omapi.c index c49660a3b..fbc139ee1 100644 --- a/server/omapi.c +++ b/server/omapi.c @@ -50,7 +50,7 @@ #ifndef lint static char copyright[] = -"$Id: omapi.c,v 1.29 2000/06/02 21:27:20 mellon Exp $ Copyright (c) 1999-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: omapi.c,v 1.30 2000/06/07 00:28:21 mellon Exp $ Copyright (c) 1999-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -79,7 +79,12 @@ void dhcp_db_objects_setup () dhcp_lease_lookup, dhcp_lease_create, dhcp_lease_remove, - dhcp_lease_free, 0, +#if defined (COMPACT_LEASES) + dhcp_lease_free, +#else + 0, +#endif + 0, sizeof (struct lease)); if (status != ISC_R_SUCCESS) log_fatal ("Can't register lease object type: %s",