diff options
author | Ted Lemon <source@isc.org> | 2001-02-12 21:10:10 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 2001-02-12 21:10:10 +0000 |
commit | e42c382659727871cc020291761504ca7aeed299 (patch) | |
tree | d9afb6591692853048dbab8c5645045e8acf94bd /server | |
parent | 25f11933ac1df3c8741168f236b52a5e0247b09f (diff) | |
download | isc-dhcp-e42c382659727871cc020291761504ca7aeed299.tar.gz |
Get rid of lease -> hostname, which isn't used.
Diffstat (limited to 'server')
-rw-r--r-- | server/omapi.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/server/omapi.c b/server/omapi.c index 4d227c87..30884447 100644 --- a/server/omapi.c +++ b/server/omapi.c @@ -50,7 +50,7 @@ #ifndef lint static char copyright[] = -"$Id: omapi.c,v 1.41 2000/11/28 23:27:22 mellon Exp $ Copyright (c) 1999-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: omapi.c,v 1.42 2001/02/12 21:10:10 mellon Exp $ Copyright (c) 1999-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -279,11 +279,6 @@ isc_result_t dhcp_lease_get_value (omapi_object_t *h, omapi_object_t *id, return omapi_make_const_value (value, name, lease -> uid, lease -> uid_len, MDL); - } else if (!omapi_ds_strcmp (name, "hostname")) { - if (lease -> hostname) - return omapi_make_string_value - (value, name, lease -> hostname, MDL); - return ISC_R_NOTFOUND; } else if (!omapi_ds_strcmp (name, "client-hostname")) { if (lease -> client_hostname) return omapi_make_string_value @@ -353,13 +348,9 @@ isc_result_t dhcp_lease_destroy (omapi_object_t *h, const char *file, int line) lease -> uid = &lease -> uid_buf [0]; lease -> uid_len = 0; } - if (lease -> hostname) { - dfree (lease -> hostname, MDL); - lease -> hostname = (char *)0; - } if (lease -> client_hostname) { dfree (lease -> client_hostname, MDL); - lease -> hostname = (char *)0; + lease -> client_hostname = (char *)0; } if (lease -> host) host_dereference (&lease -> host, file, line); @@ -473,15 +464,6 @@ isc_result_t dhcp_lease_stuff_values (omapi_object_t *c, } } - if (lease -> hostname) { - status = omapi_connection_put_name (c, "hostname"); - if (status != ISC_R_SUCCESS) - return status; - status = omapi_connection_put_string (c, lease -> hostname); - if (status != ISC_R_SUCCESS) - return status; - } - if (lease -> client_hostname) { status = omapi_connection_put_name (c, "client-hostname"); if (status != ISC_R_SUCCESS) |