]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Changes to make builds work on HP-UX with ANSI compiler.
authorTed Lemon <source@isc.org>
Tue, 13 Jul 1999 18:00:22 +0000 (18:00 +0000)
committerTed Lemon <source@isc.org>
Tue, 13 Jul 1999 18:00:22 +0000 (18:00 +0000)
common/print.c
common/tree.c
includes/auth.h
includes/cf/hpux.h
includes/osdep.h
includes/tree.h
server/dhcp.c

index 9ffefb7b2c6691e55d69a219bd1c6d644f792b26..0942df5b84065ee8167f419501ad7b94cd792c29 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: print.c,v 1.22 1999/04/05 16:18:22 mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: print.c,v 1.23 1999/07/13 18:00:12 mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -446,7 +446,7 @@ static int print_subexpression (expr, buf, len)
                rv += expr -> data.encapsulate.len;
                if (rv + 2 > len)
                        rv = len - 2;
-               strncpy (buf, expr -> data.encapsulate.data, rv - 13);
+               strncpy (buf, (char *)expr -> data.encapsulate.data, rv - 13);
                buf [rv++] = ')';
                buf [rv++] = 0;
                break;
index 437a83645dd1b7c27815af4b95f777baae7693db..6a247fcaaee951df2fe865184e883d4dbecca0c8 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: tree.c,v 1.31 1999/07/06 17:04:31 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: tree.c,v 1.32 1999/07/13 18:00:12 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -272,7 +272,7 @@ int option_cache (oc, dp, expr, option)
        return 1;
 }
 
-int do_host_lookup (result, dns)
+static int do_host_lookup (result, dns)
        struct data_string *result;
        struct dns_host_entry *dns;
 {
index 5437ebec2d4fff563f3f172505ae642241795a69..5bc61f924a4bf9bedcec664ffda7c8cfc1ec3e12 100644 (file)
@@ -27,8 +27,8 @@ struct signature_state {
        u_int8_t *algorithm_state;
        u_int8_t *output;
        int output_len;
-       void (*update) (u_int8_t *, u_int8_t *, u_int8_t *);
-       void (*final) (u_int8_t *, u_int8_t *);
+       void (*update) PROTO ((u_int8_t *, u_int8_t *, u_int8_t *));
+       void (*final) PROTO ((u_int8_t *, u_int8_t *));
 };
 
 struct auth_key {
index e4820fd49db31c51c11ff0256223aaa4069d2cb2..f7cdaffbbef1a5c3344a98ce9bbbad8f569da757 100644 (file)
@@ -52,9 +52,17 @@ extern int h_errno;
 #define _PATH_DHCRELAY_PID "/etc/dhcrelay.pid"
 #endif
 
+#if !defined (__ANSI__)
+/* Varargs stuff: use stdarg.h instead ... */
+#include <stdarg.h>
+#define VA_DOTDOTDOT ...
+#define VA_start(list, last) va_start (list, last)
+#define va_dcl
+#else
 #include <varargs.h>
 #define VA_DOTDOTDOT va_alist
 #define VA_start(list, last) va_start (list)
+#endif
 
 #define vsnprintf(buf, size, fmt, list) vsprintf (buf, fmt, list)
 #define NO_SNPRINTF
index d84412a333946c8bc4b1dd3c98be764f4c3cf9b8..ba45d54a295b9c52111beab1b67e3bec13b60a6e 100644 (file)
@@ -94,7 +94,7 @@
 #  include "cf/sco.h"
 #endif
 
-#ifdef hpux
+#if defined (hpux) || defined (__hpux)
 #  include "cf/hpux.h"
 #endif
 
index 5a44e1f36f7b2bdece41185883d48f13d24c4457..964565bd939cc1045bb3b7324584b389e6400650 100644 (file)
@@ -143,7 +143,6 @@ struct dns_host_entry {
 };
 
 struct option_cache; /* forward */
-struct data_string; /* forward */
 struct packet; /* forward */
 struct option_state; /* forward */
 struct decoded_option_state; /* forward */
index 35625f0cbc3ac45ac26ead83dc8998ac52c74c34..68626ad92d6b66feb223db0e9acaeb9e80bc82a1 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dhcp.c,v 1.100 1999/07/06 20:35:54 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dhcp.c,v 1.101 1999/07/13 18:00:22 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -348,7 +348,7 @@ void dhcpinform (packet)
        struct option_state *options = (struct option_state *)0;
        struct dhcp_packet raw;
        struct packet outgoing;
-       char dhcpack = DHCPACK;
+       unsigned char dhcpack = DHCPACK;
        struct subnet *subnet;
        struct iaddr cip;
        int i, j, nulltp;