From 7bbdb1df7d5b307d8d2c9585fd4b155a088c8a3b Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Thu, 6 Mar 1997 18:27:20 +0000 Subject: [PATCH] Add informational message to abandon_lease. --- common/memory.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/common/memory.c b/common/memory.c index 10200cfeb..9e81d8c77 100644 --- a/common/memory.c +++ b/common/memory.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: memory.c,v 1.25 1997/03/06 06:53:49 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: memory.c,v 1.26 1997/03/06 18:27:20 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -627,15 +627,16 @@ void release_lease (lease) /* Abandon the specified lease (set its timeout to infinity and its particulars to zero, and re-hash it as appropriate. */ -void abandon_lease (lease) +void abandon_lease (lease, message) struct lease *lease; + char *message; { struct lease lt; lt = *lease; lt.ends = 0xFFFFFFFF; - warn ("Abandoning IP address %s\n", - piaddr (lease -> ip_addr)); + warn ("Abandoning IP address %s: %s\n", + piaddr (lease -> ip_addr), message); lt.hardware_addr.htype = -1; lt.hardware_addr.hlen = 0; lt.uid = (unsigned char *)0; -- 2.47.3