]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add informational message to abandon_lease.
authorTed Lemon <source@isc.org>
Thu, 6 Mar 1997 18:27:20 +0000 (18:27 +0000)
committerTed Lemon <source@isc.org>
Thu, 6 Mar 1997 18:27:20 +0000 (18:27 +0000)
common/memory.c

index 10200cfeb575a66b5c06b8b22fb1f877d8e65620..9e81d8c778e140383bf31e0d35b16ceb0fce2b4f 100644 (file)
@@ -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;