2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-30 05:47:45 +00:00

Prevent some type incompatibility warnings.

This commit is contained in:
Ted Lemon 1998-03-15 21:16:39 +00:00
parent 76195acb1c
commit 338303a442
2 changed files with 9 additions and 7 deletions

View File

@ -42,7 +42,7 @@
#ifndef lint #ifndef lint
static char copyright[] = static char copyright[] =
"$Id: parse.c,v 1.3 1998/03/15 20:53:12 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; "$Id: parse.c,v 1.4 1998/03/15 21:16:23 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */ #endif /* not lint */
#include "dhcpd.h" #include "dhcpd.h"
@ -346,8 +346,8 @@ unsigned char *parse_numeric_aggregate (cfile, buf,
t = (unsigned char *)malloc (strlen (val) + 1); t = (unsigned char *)malloc (strlen (val) + 1);
if (!t) if (!t)
error ("no temp space for number."); error ("no temp space for number.");
strcpy (t, val); strcpy ((char *)t, val);
c = cons (t, c); c = cons ((caddr_t)t, c);
} }
} while (++count != *max); } while (++count != *max);

View File

@ -42,7 +42,7 @@
#ifndef lint #ifndef lint
static char copyright[] = static char copyright[] =
"$Id: confpars.c,v 1.45 1997/10/27 20:22:40 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; "$Id: confpars.c,v 1.46 1998/03/15 21:16:39 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */ #endif /* not lint */
#include "dhcpd.h" #include "dhcpd.h"
@ -958,7 +958,8 @@ void parse_option_param (cfile, group)
token = next_token (&val, cfile); token = next_token (&val, cfile);
tree = tree_concat tree = tree_concat
(tree, (tree,
tree_const (val, tree_const ((unsigned char *)
val,
strlen (val))); strlen (val)));
} else { } else {
parse_warn ("expecting string %s.", parse_warn ("expecting string %s.",
@ -978,8 +979,9 @@ void parse_option_param (cfile, group)
return; return;
} }
tree = tree_concat (tree, tree = tree_concat (tree,
tree_const (val, tree_const
strlen (val))); ((unsigned char *) val,
strlen (val)));
break; break;
case 'I': /* IP address or hostname. */ case 'I': /* IP address or hostname. */