mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-04 08:15:14 +00:00
Fix some signed/unsigned pointer incompatibilities for Digital Unix.
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
"$Id: options.c,v 1.46 1999/10/07 06:35:43 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
|
||||
"$Id: options.c,v 1.47 1999/10/07 06:42:50 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#define DHCP_OPTION_DATA
|
||||
@@ -247,7 +247,7 @@ int cons_options (inpacket, outpacket, lease, mms, in_options, cfg_options,
|
||||
struct data_string *prl;
|
||||
{
|
||||
#define PRIORITY_COUNT 300
|
||||
int priority_list [PRIORITY_COUNT];
|
||||
unsigned priority_list [PRIORITY_COUNT];
|
||||
int priority_len;
|
||||
unsigned char buffer [4096]; /* Really big buffer... */
|
||||
unsigned main_buffer_size;
|
||||
|
@@ -22,7 +22,7 @@
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
"$Id: parse.c,v 1.44 1999/10/07 06:35:44 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
||||
"$Id: parse.c,v 1.45 1999/10/07 06:42:51 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#include "dhcpd.h"
|
||||
@@ -255,7 +255,7 @@ void parse_hardware_param (cfile, hardware)
|
||||
{
|
||||
const char *val;
|
||||
enum dhcp_token token;
|
||||
int hlen;
|
||||
unsigned hlen;
|
||||
unsigned char *t;
|
||||
|
||||
token = next_token (&val, cfile);
|
||||
|
@@ -22,7 +22,7 @@
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
"$Id: dhcp.c,v 1.114 1999/10/07 06:36:31 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
||||
"$Id: dhcp.c,v 1.115 1999/10/07 06:42:53 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#include "dhcpd.h"
|
||||
@@ -2411,7 +2411,7 @@ struct lease *mockup_lease (packet, share, hp)
|
||||
return (struct lease *)0;
|
||||
mock.next = mock.prev = (struct lease *)0;
|
||||
mock.host = hp;
|
||||
(const char *)mock.uid = hp -> client_identifier.data;
|
||||
(const unsigned char *)mock.uid = hp -> client_identifier.data;
|
||||
mock.uid_len = hp -> client_identifier.len;
|
||||
mock.hardware_addr = hp -> interface;
|
||||
mock.starts = mock.timestamp = mock.ends = MIN_TIME;
|
||||
|
Reference in New Issue
Block a user