From: Ted Lemon Date: Wed, 2 May 2001 06:27:52 +0000 (+0000) Subject: Add line-oriented argument to new_parse(). X-Git-Tag: V3-RC5~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ab46a103007afe7b1b113e948885ebea7a765a5;p=thirdparty%2Fdhcp.git Add line-oriented argument to new_parse(). --- diff --git a/client/clparse.c b/client/clparse.c index f8f701df8..e92310347 100644 --- a/client/clparse.c +++ b/client/clparse.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: clparse.c,v 1.60 2001/04/05 20:37:55 mellon Exp $ Copyright (c) 1996-2001 The Internet Software Consortium. All rights reserved.\n"; +"$Id: clparse.c,v 1.61 2001/05/02 06:27:11 mellon Exp $ Copyright (c) 1996-2001 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -108,7 +108,7 @@ isc_result_t read_client_conf () if ((file = open (path_dhclient_conf, O_RDONLY)) >= 0) { cfile = (struct parse *)0; - new_parse (&cfile, file, (char *)0, 0, path_dhclient_conf); + new_parse (&cfile, file, (char *)0, 0, path_dhclient_conf, 1); do { token = peek_token (&val, (unsigned *)0, cfile); @@ -130,7 +130,7 @@ isc_result_t read_client_conf () parse = (struct parse *)0; status = new_parse (&parse, -1, default_client_config, (sizeof default_client_config) - 1, - "default client configuration"); + "default client configuration", 1); if (status != ISC_R_SUCCESS) log_fatal ("can't begin default client config!"); @@ -191,7 +191,7 @@ void read_client_leases () if ((file = open (path_dhclient_db, O_RDONLY)) < 0) return; cfile = (struct parse *)0; - new_parse (&cfile, file, (char *)0, 0, path_dhclient_db); + new_parse (&cfile, file, (char *)0, 0, path_dhclient_db, 1); do { token = next_token (&val, (unsigned *)0, cfile); diff --git a/common/comapi.c b/common/comapi.c index 1e5e98a10..30fea7b2c 100644 --- a/common/comapi.c +++ b/common/comapi.c @@ -50,7 +50,7 @@ #ifndef lint static char copyright[] = -"$Id: comapi.c,v 1.8 2001/02/26 22:21:06 mellon Exp $ Copyright (c) 1999-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: comapi.c,v 1.9 2001/05/02 06:27:52 mellon Exp $ Copyright (c) 1999-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -162,7 +162,7 @@ isc_result_t dhcp_group_set_value (omapi_object_t *h, status = new_parse (&parse, -1, (char *)value -> u.buffer.value, value -> u.buffer.len, - "network client"); + "network client", 0); if (status != ISC_R_SUCCESS) return status; if (!(parse_executable_statements