summaryrefslogtreecommitdiff
path: root/dhcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'dhcp.c')
-rw-r--r--dhcp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dhcp.c b/dhcp.c
index c1e3446d..1414d0af 100644
--- a/dhcp.c
+++ b/dhcp.c
@@ -42,7 +42,7 @@
#ifndef lint
static char copyright[] =
-"$Id: dhcp.c,v 1.31 1996/08/28 01:29:25 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: dhcp.c,v 1.32 1996/08/29 20:12:36 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -681,7 +681,8 @@ void ack_lease (packet, lease, offer, when)
we can get one from the lease. */
if (!options [DHO_HOST_NAME] && lease -> hostname) {
options [DHO_HOST_NAME] = &hostname_tree;
- options [DHO_HOST_NAME] -> value = lease -> hostname;
+ options [DHO_HOST_NAME] -> value =
+ (unsigned char *)lease -> hostname;
options [DHO_HOST_NAME] -> buf_size =
options [DHO_HOST_NAME] -> len =
strlen (lease -> hostname);