#ifndef lint
static char copyright[] =
-"$Id: conflex.c,v 1.108 2007/05/23 15:29:49 shane Exp $ Copyright (c) 2004-2007 Internet Systems Consortium. All rights reserved.\n";
+"$Id: conflex.c,v 1.109 2007/05/29 18:11:55 each Exp $ Copyright (c) 2004-2007 Internet Systems Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
static enum dhcp_token read_string PROTO ((struct parse *));
static enum dhcp_token read_number PROTO ((int, struct parse *));
static enum dhcp_token read_num_or_name PROTO ((int, struct parse *));
-static enum dhcp_token intern PROTO ((char *, enum dhcp_token));
+static enum dhcp_token intern PROTO ((unsigned char *, enum dhcp_token));
isc_result_t new_parse (cfile, file, inbuf, buflen, name, eolp)
struct parse **cfile;
}
static enum dhcp_token intern (atom, dfv)
- char *atom;
+ unsigned char *atom;
enum dhcp_token dfv;
{
if (!isascii (atom [0]))
#ifndef lint
static char copyright[] =
-"$Id: parse.c,v 1.125 2007/05/23 15:29:49 shane Exp $ Copyright (c) 2004-2007 Internet Systems Consortium. All rights reserved.\n";
+"$Id: parse.c,v 1.126 2007/05/29 18:11:55 each Exp $ Copyright (c) 2004-2007 Internet Systems Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
int base;
unsigned size;
{
- const char *ptr = str;
+ const unsigned char *ptr = str;
int negative = 0;
u_int32_t val = 0;
int tval;
#ifndef lint
static char copyright[] =
-"$Id: print.c,v 1.65 2007/05/19 19:16:24 dhankins Exp $ Copyright (c) 2004-2007 Internet Systems Consortium. All rights reserved.\n";
+"$Id: print.c,v 1.66 2007/05/29 18:11:55 each Exp $ Copyright (c) 2004-2007 Internet Systems Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
char *quotify_string (const char *s, const char *file, int line)
{
unsigned len = 0;
- const char *sp;
+ const unsigned char *sp;
char *buf, *nsp;
for (sp = s; sp && *sp; sp++) {
#ifndef lint
static char copyright[] =
-"$Id: tables.c,v 1.63 2007/05/19 19:16:24 dhankins Exp $ Copyright (c) 2004-2007 Internet Systems Consortium. All rights reserved.\n";
+"$Id: tables.c,v 1.64 2007/05/29 18:11:55 each Exp $ Copyright (c) 2004-2007 Internet Systems Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
* option structures omapi typed objects, which is a bigger headache.
*/
-char *default_option_format = "X";
+char *default_option_format = (char *) "X";
/* Must match hash_reference/dereference types in omapip/hash.h. */
int
/* The option name may be packed in the same alloc as the
* option structure.
*/
- if ((*dest)->name != (char *)((*dest) + 1))
- dfree((*dest)->name, file, line);
+ if ((char *) (*dest)->name != (char *) ((*dest) + 1))
+ dfree((char *) (*dest)->name, file, line);
/* It's either a user-configured format (allocated), or the
* default static format.
*/
if (((*dest)->format != NULL) &&
((*dest)->format != default_option_format)) {
- dfree((*dest)->format, file, line);
+ dfree((char *) (*dest)->format, file, line);
}
dfree(*dest, file, line);
#ifndef LINT
-static const char rcsid[] = "$Header: /tmp/cvstest/DHCP/dst/dst_api.c,v 1.1 2001/02/22 07:22:08 mellon Exp $";
+static const char rcsid[] = "$Header: /tmp/cvstest/DHCP/dst/dst_api.c,v 1.2 2007/05/29 18:11:55 each Exp $";
#endif
/*
unsigned flags, len;
int proto, alg, dlen;
int c;
- char name[PATH_MAX], enckey[RAW_KEY_SIZE], *notspace;
+ char name[PATH_MAX], enckey[RAW_KEY_SIZE];
+ unsigned char *notspace;
u_char deckey[RAW_KEY_SIZE];
FILE *fp;
#if defined (FAILOVER_PROTOCOL)
int write_failover_state (dhcp_failover_state_t *);
#endif
-int db_printable PROTO ((const char *));
+int db_printable PROTO ((const unsigned char *));
int db_printable_len PROTO ((const unsigned char *, unsigned));
isc_result_t write_named_billing_class(const void *, unsigned, void *);
void write_billing_classes (void);
};
struct option {
- char *name;
- char *format;
+ const char *name;
+ const char *format;
struct universe *universe;
unsigned code;
int refcnt;
*/
#ifndef lint
-static const char rcsid[] = "$Id: ns_date.c,v 1.3 2005/03/17 20:15:17 dhankins Exp $";
+static const char rcsid[] = "$Id: ns_date.c,v 1.4 2007/05/29 18:11:56 each Exp $";
#endif
/* Import. */
/* Forward. */
-static int datepart(const char *, int, int, int, int *);
+static int datepart(const unsigned char *, int, int, int, int *);
/* Public. */
* Don't reset the flag if there is no error.
*/
static int
-datepart(const char *buf, int size, int min, int max, int *errp) {
+datepart(const unsigned char *buf, int size, int min, int max, int *errp) {
int result = 0;
int i;
#if defined(LIBC_SCCS) && !defined(lint)
static const char sccsid[] = "@(#)res_init.c 8.1 (Berkeley) 6/7/93";
-static const char rcsid[] = "$Id: res_init.c,v 1.6 2005/03/17 20:15:19 dhankins Exp $";
+static const char rcsid[] = "$Id: res_init.c,v 1.7 2007/05/29 18:11:56 each Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
int
minires_vinit(res_state statp, int preinit) {
register FILE *fp;
- register char *cp, **pp;
+ register unsigned char *cp;
+ register char **pp;
register int n;
char buf[BUFSIZ];
int nserv = 0; /* number of nameserver records read from file */
#if defined(LIBC_SCCS) && !defined(lint)
static const char sccsid[] = "@(#)res_query.c 8.1 (Berkeley) 6/4/93";
-static const char rcsid[] = "$Id: res_query.c,v 1.5 2005/03/17 20:15:19 dhankins Exp $";
+static const char rcsid[] = "$Id: res_query.c,v 1.6 2007/05/29 18:11:56 each Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
const char *
res_hostalias(const res_state statp, const char *name, char *dst, size_t siz) {
- char *file, *cp1, *cp2;
+ char *file;
+ unsigned char *cp1, *cp2;
char buf[BUFSIZ];
FILE *fp;
#ifndef lint
static char copyright[] =
-"$Id: hash.c,v 1.15 2007/05/19 19:16:26 dhankins Exp $ Copyright (c) 2004-2007 Internet Systems Consortium. All rights reserved.\n";
+"$Id: hash.c,v 1.16 2007/05/29 18:11:56 each Exp $ Copyright (c) 2004-2007 Internet Systems Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
struct hash_bucket *bp;
if (table->hash_count == 0)
- return "Invalid hash table.";
+ return (char *) "Invalid hash table.";
for (i = 0 ; i < table->hash_count ; i++) {
curlen = 0;
pct > 2147483647 ||
minlen > 2147483647 ||
maxlen > 2147483647)
- return "Report out of range for display.";
+ return (char *) "Report out of range for display.";
sprintf(retbuf, "Contents/Size (%%): %u/%u (%u%%). Min/max: %u/%u",
contents, table->hash_count, pct, minlen, maxlen);
int casecmp (const void *v1, const void *v2, size_t len)
{
size_t i;
- const char *s = v1;
- const char *t = v2;
+ const unsigned char *s = v1;
+ const unsigned char *t = v2;
for (i = 0; i < len; i++)
{
#ifndef lint
static char copyright[] =
-"$Id: db.c,v 1.78 2007/05/19 19:16:26 dhankins Exp $ Copyright (c) 2004-2007 Internet Systems Consortium. All rights reserved.\n";
+"$Id: db.c,v 1.79 2007/05/29 18:11:56 each Exp $ Copyright (c) 2004-2007 Internet Systems Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
#endif
int db_printable (s)
- const char *s;
+ const unsigned char *s;
{
int i;
for (i = 0; s [i]; i++)
#ifndef lint
static char ocopyright[] =
-"$Id: dhcpd.c,v 1.125 2007/05/19 19:16:26 dhankins Exp $ Copyright 2004-2007 Internet Systems Consortium.";
+"$Id: dhcpd.c,v 1.126 2007/05/29 18:11:56 each Exp $ Copyright 2004-2007 Internet Systems Consortium.";
#endif
static char copyright[] =
int fd;
int i, status;
struct servent *ent;
- char *s;
+ unsigned char *s;
int cftest = 0;
int lftest = 0;
#ifndef DEBUG