]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix some signed/unsigned pointer incompatibilities for Digital Unix.
authorTed Lemon <source@isc.org>
Thu, 7 Oct 1999 06:42:53 +0000 (06:42 +0000)
committerTed Lemon <source@isc.org>
Thu, 7 Oct 1999 06:42:53 +0000 (06:42 +0000)
common/options.c
common/parse.c
server/dhcp.c

index cd1ad8a205f944085868b62ef7ff61b00e66b2ff..a89e737ac1fcf69e6711441d969ac3faad346d35 100644 (file)
@@ -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;
index c703a43f414038606a7beaabc5c8c0c351900c81..4169841d03335de8a72ea631280ceac1c3655267 100644 (file)
@@ -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);
index ce5bec4380b3f4bde4d3045c4e8bcc8bdf50f3a5..69da9895a9b70e4ef27b29216fc37d7eed4b7921 100644 (file)
@@ -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;