#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"
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;
#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"
return 1;
}
-int do_host_lookup (result, dns)
+static int do_host_lookup (result, dns)
struct data_string *result;
struct dns_host_entry *dns;
{
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 {
#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
# include "cf/sco.h"
#endif
-#ifdef hpux
+#if defined (hpux) || defined (__hpux)
# include "cf/hpux.h"
#endif
};
struct option_cache; /* forward */
-struct data_string; /* forward */
struct packet; /* forward */
struct option_state; /* forward */
struct decoded_option_state; /* forward */
#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"
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;