]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add line-oriented argument to new_parse().
authorTed Lemon <source@isc.org>
Wed, 2 May 2001 07:11:38 +0000 (07:11 +0000)
committerTed Lemon <source@isc.org>
Wed, 2 May 2001 07:11:38 +0000 (07:11 +0000)
server/confpars.c
server/dhcpd.c
server/omapi.c

index 28d7955ef3729e30ad4986a69162cfa3233f20d7..41c916c74bb222fd98e8d8e3ed89e4f34d253c67 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: confpars.c,v 1.142 2001/04/30 22:38:32 mellon Exp $ Copyright (c) 1995-2001 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: confpars.c,v 1.143 2001/05/02 07:05:52 mellon Exp $ Copyright (c) 1995-2001 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -167,9 +167,9 @@ isc_result_t read_conf_file (const char *filename, struct group *group,
        /* If we're recording, write out the filename and file contents. */
        if (trace_record ())
                trace_write_packet (ttype, ulen + tflen + 1, dbuf, MDL);
-       new_parse (&cfile, -1, fbuf, ulen, filename); /* XXX */
+       new_parse (&cfile, -1, fbuf, ulen, filename, 0); /* XXX */
 #else
-       new_parse (&cfile, file, (char *)0, 0, filename);
+       new_parse (&cfile, file, (char *)0, 0, filename, 0);
 #endif
        if (leasep)
                status = lease_file_subparse (cfile);
@@ -202,7 +202,7 @@ void trace_conf_input (trace_type_t *ttype, unsigned len, char *data)
        /* If we're recording, write out the filename and file contents. */
        if (trace_record ())
                trace_write_packet (ttype, len, data, MDL);
-       new_parse (&cfile, -1, fbuf, flen, data);
+       new_parse (&cfile, -1, fbuf, flen, data, 0);
        if (ttype == trace_readleases_type)
                lease_file_subparse (cfile);
        else
index fadad829c06f7aa155f93fa0ca31d1c05d70230b..4d916517454e637d9fe9f09a9f04ddaa68c4c314 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char ocopyright[] =
-"$Id: dhcpd.c,v 1.114 2001/04/05 22:52:48 mellon Exp $ Copyright 1995-2001 Internet Software Consortium.";
+"$Id: dhcpd.c,v 1.115 2001/05/02 07:08:15 mellon Exp $ Copyright 1995-2001 Internet Software Consortium.";
 #endif
 
   static char copyright[] =
@@ -435,7 +435,7 @@ int main (argc, argv, envp)
        parse = (struct parse *)0;
        status = new_parse (&parse, -1,
                            std_nsupdate, (sizeof std_nsupdate) - 1,
-                           "standard name service update routine");
+                           "standard name service update routine", 0);
        if (status != ISC_R_SUCCESS)
                log_fatal ("can't begin parsing name service updater!");
 
@@ -837,7 +837,7 @@ void postconf_initialization (int quiet)
                parse = (struct parse *)0;
                result = new_parse (&parse, -1,
                                 old_nsupdate, (sizeof old_nsupdate) - 1,
-                                "old name service update routine");
+                                "old name service update routine", 0);
                if (result != ISC_R_SUCCESS)
                        log_fatal ("can't begin parsing old ddns updater!");
 
index 8c7c67022bae589f08151618d48bd64b78e7eb6e..23b2840b4fa7824836c60d6c6383836b8f715c47 100644 (file)
@@ -50,7 +50,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: omapi.c,v 1.45 2001/04/30 22:39:10 mellon Exp $ Copyright (c) 1999-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: omapi.c,v 1.46 2001/05/02 07:11:38 mellon Exp $ Copyright (c) 1999-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -918,7 +918,7 @@ isc_result_t dhcp_host_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