mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-01 06:45:27 +00:00
Fix signed/unsigned char type mismatch
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: confpars.c,v 1.28 1996/08/29 09:49:52 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
|
"$Id: confpars.c,v 1.29 1996/08/29 20:12:37 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -520,7 +520,8 @@ void parse_host_declaration (cfile, group)
|
|||||||
error ("can't allocate a tree cache for hostname.");
|
error ("can't allocate a tree cache for hostname.");
|
||||||
host -> group -> options [DHO_HOST_NAME] -> len =
|
host -> group -> options [DHO_HOST_NAME] -> len =
|
||||||
strlen (name);
|
strlen (name);
|
||||||
host -> group -> options [DHO_HOST_NAME] -> value = name;
|
host -> group -> options [DHO_HOST_NAME] -> value =
|
||||||
|
(unsigned char *)name;
|
||||||
host -> group -> options [DHO_HOST_NAME] -> buf_size =
|
host -> group -> options [DHO_HOST_NAME] -> buf_size =
|
||||||
host -> group -> options [DHO_HOST_NAME] -> len;
|
host -> group -> options [DHO_HOST_NAME] -> len;
|
||||||
host -> group -> options [DHO_HOST_NAME] -> timeout =
|
host -> group -> options [DHO_HOST_NAME] -> timeout =
|
||||||
|
5
dhcp.c
5
dhcp.c
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
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 */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -681,7 +681,8 @@ void ack_lease (packet, lease, offer, when)
|
|||||||
we can get one from the lease. */
|
we can get one from the lease. */
|
||||||
if (!options [DHO_HOST_NAME] && lease -> hostname) {
|
if (!options [DHO_HOST_NAME] && lease -> hostname) {
|
||||||
options [DHO_HOST_NAME] = &hostname_tree;
|
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] -> buf_size =
|
||||||
options [DHO_HOST_NAME] -> len =
|
options [DHO_HOST_NAME] -> len =
|
||||||
strlen (lease -> hostname);
|
strlen (lease -> hostname);
|
||||||
|
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: confpars.c,v 1.28 1996/08/29 09:49:52 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
|
"$Id: confpars.c,v 1.29 1996/08/29 20:12:37 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -520,7 +520,8 @@ void parse_host_declaration (cfile, group)
|
|||||||
error ("can't allocate a tree cache for hostname.");
|
error ("can't allocate a tree cache for hostname.");
|
||||||
host -> group -> options [DHO_HOST_NAME] -> len =
|
host -> group -> options [DHO_HOST_NAME] -> len =
|
||||||
strlen (name);
|
strlen (name);
|
||||||
host -> group -> options [DHO_HOST_NAME] -> value = name;
|
host -> group -> options [DHO_HOST_NAME] -> value =
|
||||||
|
(unsigned char *)name;
|
||||||
host -> group -> options [DHO_HOST_NAME] -> buf_size =
|
host -> group -> options [DHO_HOST_NAME] -> buf_size =
|
||||||
host -> group -> options [DHO_HOST_NAME] -> len;
|
host -> group -> options [DHO_HOST_NAME] -> len;
|
||||||
host -> group -> options [DHO_HOST_NAME] -> timeout =
|
host -> group -> options [DHO_HOST_NAME] -> timeout =
|
||||||
|
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
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 */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -681,7 +681,8 @@ void ack_lease (packet, lease, offer, when)
|
|||||||
we can get one from the lease. */
|
we can get one from the lease. */
|
||||||
if (!options [DHO_HOST_NAME] && lease -> hostname) {
|
if (!options [DHO_HOST_NAME] && lease -> hostname) {
|
||||||
options [DHO_HOST_NAME] = &hostname_tree;
|
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] -> buf_size =
|
||||||
options [DHO_HOST_NAME] -> len =
|
options [DHO_HOST_NAME] -> len =
|
||||||
strlen (lease -> hostname);
|
strlen (lease -> hostname);
|
||||||
|
Reference in New Issue
Block a user