#ifndef lint
static char copyright[] =
-"$Id: tree.c,v 1.57 1999/10/06 01:35:44 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998 The Internet Software Consortium. All rights reserved.\n";
+"$Id: tree.c,v 1.58 1999/10/07 02:14:06 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
return 0;
}
if (data.len == 1 &&
- !strncasecmp (data.data, "a", 1)) {
+ !strncasecmp ((char *)data.data, "a", 1)) {
s = lease -> ddns_fwd_name;
} else if (data.len == 3 &&
- !strncasecmp (data.data, "ptr", 3)) {
+ !strncasecmp ((char *)data.data, "ptr", 3)) {
s = lease -> ddns_rev_name;
} else {
#if defined (DEBUG_EXPRESSIONS)
#ifndef lint
static char copyright[] =
-"$Id: confpars.c,v 1.85 1999/10/01 03:37:29 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: confpars.c,v 1.86 1999/10/07 02:14:09 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
}
go = ((struct group_object *)
hash_lookup (group_name_hash,
- val, strlen (val)));
+ (unsigned char *)val,
+ strlen (val)));
if (!go) {
parse_warn (cfile, "unknown group %s in host %s",
val, host -> name);
if (group_name_hash) {
t = ((struct group_object *)
hash_lookup (group_name_hash,
- name, strlen (name)));
+ (unsigned char *)name,
+ strlen (name)));
if (t) {
delete_group (t, 0);
}
#ifndef lint
static char copyright[] =
-"$Id: db.c,v 1.32 1999/10/05 02:44:37 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: db.c,v 1.33 1999/10/07 02:14:10 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
}
if (lease -> uid_len) {
int i;
- if (db_printable_len (lease -> uid, lease -> uid_len)) {
+ if (db_printable_len ((char *)lease -> uid,
+ lease -> uid_len)) {
fprintf (db_file, "\n\tuid \"%*.*s\";",
lease -> uid_len, lease -> uid_len,
lease -> uid);
if (host -> client_identifier.len) {
int i;
errno = 0;
- if (db_printable_len (host -> client_identifier.data,
+ if (db_printable_len ((char *)
+ host -> client_identifier.data,
host -> client_identifier.len)) {
fprintf (db_file, "\n\tuid \"%*.*s\";",
host -> client_identifier.len,
#ifndef lint
static char copyright[] =
-"$Id: mdb.c,v 1.6 1999/10/05 18:44:27 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
+"$Id: mdb.c,v 1.7 1999/10/07 02:14:10 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
if (group_name_hash)
d = ((struct group_object *)
hash_lookup (group_name_hash,
- group -> name, strlen (group -> name)));
+ (unsigned char *)group -> name,
+ strlen (group -> name)));
else
return ISC_R_INVALIDARG;
if (!d)
hash table entry. */
if ((group -> flags & GROUP_OBJECT_DYNAMIC) &&
!(group -> flags & GROUP_OBJECT_STATIC)) {
- delete_hash_entry (group_name_hash, group -> name,
+ delete_hash_entry (group_name_hash,
+ (unsigned char *)group -> name,
strlen (group -> name));
--group -> refcnt;
} else {
if (group_name_hash) {
t = ((struct group_object *)
hash_lookup (group_name_hash,
- group -> name,
+ (unsigned char *)group -> name,
strlen (group -> name)));
if (t && t != group) {
/* If this isn't a dynamic entry, then we need to flag
if (!(t -> flags & GROUP_OBJECT_DELETED))
delete_group (t, 0);
else {
- delete_hash_entry (group_name_hash,
- group -> name,
- strlen (group -> name));
+ delete_hash_entry
+ (group_name_hash,
+ (unsigned char *)group -> name,
+ strlen (group -> name));
omapi_object_dereference
((omapi_object_t **)&t,
"supersede_group");
dynamic groups if appropriate. */
if (!t) {
add_hash (group_name_hash,
- group -> name, strlen (group -> name),
+ (unsigned char *)group -> name,
+ strlen (group -> name),
(unsigned char *)group);
}
#ifndef lint
static char copyright[] =
-"$Id: omapi.c,v 1.13 1999/10/06 19:17:44 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
+"$Id: omapi.c,v 1.14 1999/10/07 02:14:10 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
if (group_name_hash) {
t = ((struct group_object *)
hash_lookup (group_name_hash,
- group -> name,
+ (unsigned char *)group -> name,
strlen (group -> name)));
if (t) {
delete_hash_entry (group_name_hash,
+ (unsigned char *)
group -> name,
strlen (group -> name));
--group -> refcnt;