]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add line-oriented argument to new_parse().
authorTed Lemon <source@isc.org>
Wed, 2 May 2001 06:27:52 +0000 (06:27 +0000)
committerTed Lemon <source@isc.org>
Wed, 2 May 2001 06:27:52 +0000 (06:27 +0000)
client/clparse.c
common/comapi.c

index f8f701df8e68650203800f42bd0f3d7d1e407e82..e92310347dc3ecef0d769231016576527192e265 100644 (file)
@@ -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);
index 1e5e98a10262d26ce9811224ffd22e70c3fe1abf..30fea7b2c8a9a99b4ed9ccac4b2746f5e4eb6cb9 100644 (file)
@@ -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