2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-09-01 06:45:27 +00:00

Remove redundant cast.

See RT ticket #16917 for more.
This commit is contained in:
Shane Kerr
2007-05-30 10:10:12 +00:00
parent 02b030d1db
commit dfe63f1bfa

View File

@@ -34,7 +34,7 @@
#ifndef lint #ifndef lint
static char copyright[] = static char copyright[] =
"$Id: confpars.c,v 1.165 2007/05/19 18:47:15 dhankins Exp $ Copyright (c) 2004-2007 Internet Systems Consortium. All rights reserved.\n"; "$Id: confpars.c,v 1.166 2007/05/30 10:10:12 shane Exp $ Copyright (c) 2004-2007 Internet Systems Consortium. All rights reserved.\n";
#endif /* not lint */ #endif /* not lint */
#include "dhcpd.h" #include "dhcpd.h"
@@ -1734,7 +1734,7 @@ void parse_host_declaration (cfile, group)
int known; int known;
struct option *option; struct option *option;
struct expression *expr; struct expression *expr;
char *tmp_format; const char *tmp_format;
name = parse_host_name (cfile); name = parse_host_name (cfile);
if (!name) { if (!name) {
@@ -1905,8 +1905,8 @@ void parse_host_declaration (cfile, group)
* as it does not handle things like arrays and * as it does not handle things like arrays and
* such. * such.
*/ */
if (!parse_option_token(&expr, cfile, (const char **) if (!parse_option_token(&expr, cfile, &tmp_format,
&tmp_format, NULL, 1, 1)) { NULL, 1, 1)) {
skip_to_rbrace(cfile, 1); skip_to_rbrace(cfile, 1);
option_dereference(&option, MDL); option_dereference(&option, MDL);
break; break;