]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix stupid compile bug.
authorTed Lemon <source@isc.org>
Mon, 7 Feb 2000 05:13:58 +0000 (05:13 +0000)
committerTed Lemon <source@isc.org>
Mon, 7 Feb 2000 05:13:58 +0000 (05:13 +0000)
common/alloc.c
includes/tree.h

index bec9ab8ba6b760cade4b575b77ada474f0f34e0b..435640ada673c68e109e17372808d5816fab0f7a 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: alloc.c,v 1.42 2000/02/05 18:08:55 mellon Exp $ Copyright (c) 1995, 1996, 1998 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: alloc.c,v 1.43 2000/02/07 05:13:57 mellon Exp $ Copyright (c) 1995, 1996, 1998 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -499,8 +499,7 @@ int binding_value_allocate (cptr, file, line)
 
        if (free_binding_values) {
                rval = free_binding_values;
-               free_binding_values =
-                       (struct binding_value *)rval -> value.fundef;
+               free_binding_values = rval -> value.bv;
        } else {
                rval = dmalloc (sizeof (struct binding_value), file, line);
                if (!rval)
@@ -544,7 +543,7 @@ void free_binding_value (bv, file, line)
        const char *file;
        int line;
 {
-       bv -> value.fundef = (struct fundef *)free_binding_values;
+       bv -> value.bv = free_binding_values;
        free_binding_values = bv;
        dmalloc_reuse (free_binding_values, (char *)0, 0, 0);
 }
index 0cac4f7cb26dc124350cdc807c0e2352c7cc3260..8cbbf4fdbffc915d1888358db5e15369b02e7be3 100644 (file)
@@ -85,6 +85,7 @@ struct binding_value {
                int boolean;
                ns_updrec *dns;
                struct fundef fundef;
+               struct binding_value *bv;
        } value;
 };