diff options
author | Ted Lemon <source@isc.org> | 2000-03-18 03:34:11 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 2000-03-18 03:34:11 +0000 |
commit | 68f55908089e37c37334a36c595e1de150cb964a (patch) | |
tree | 3ec47f6a9df1a37e31ae4c14a4092fd225e01fa0 /common/tables.c | |
parent | 0bcad76189c7b2d13515bcd02f18145ccc1fed34 (diff) | |
download | isc-dhcp-68f55908089e37c37334a36c595e1de150cb964a.tar.gz |
Make universe_hash using new_hash.
Diffstat (limited to 'common/tables.c')
-rw-r--r-- | common/tables.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common/tables.c b/common/tables.c index e2fdb666..614f53cd 100644 --- a/common/tables.c +++ b/common/tables.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: tables.c,v 1.39 2000/03/18 02:15:37 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: tables.c,v 1.40 2000/03/18 03:34:06 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -846,7 +846,7 @@ const char *hardware_types [] = { "unknown-254", "unknown-255" }; -struct hash_table universe_hash; +struct hash_table *universe_hash; struct universe **universes; int universe_count, universe_max; @@ -920,11 +920,11 @@ void initialize_common_option_spaces() } /* Set up the hash of universes. */ - universe_hash.hash_count = DEFAULT_HASH_SIZE; - add_hash (&universe_hash, + universe_hash = new_hash (0, 0, 1); + add_hash (universe_hash, (const unsigned char *)dhcp_universe.name, 0, (unsigned char *)&dhcp_universe); - add_hash (&universe_hash, + add_hash (universe_hash, (const unsigned char *)nwip_universe.name, 0, (unsigned char *)&nwip_universe); } |