]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Initialize option_space_foreach for ad-hoc option spaces.
authorTed Lemon <source@isc.org>
Fri, 24 Nov 2000 04:04:04 +0000 (04:04 +0000)
committerTed Lemon <source@isc.org>
Fri, 24 Nov 2000 04:04:04 +0000 (04:04 +0000)
common/parse.c

index 1689d3e62150cbf1ff47b9d1cbd8ca4a01aa5958..9114c78cea28ad4e6067c830db634bc39fc94870 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: parse.c,v 1.89 2000/10/10 22:45:25 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: parse.c,v 1.90 2000/11/24 04:04:04 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -129,7 +129,7 @@ char *parse_string (cfile)
 
        token = next_token (&val, cfile);
        if (token != STRING) {
-               parse_warn (cfile, "filename must be a string");
+               parse_warn (cfile, "expecting a string");
                skip_to_semi (cfile);
                return (char *)0;
        }
@@ -893,6 +893,7 @@ void parse_option_space_decl (cfile)
        nu -> lookup_func = lookup_hashed_option;
        nu -> option_state_dereference =
                hashed_option_state_dereference;
+       nu -> foreach = hashed_option_space_foreach;
        nu -> save_func = save_hashed_option;
        nu -> delete_func = delete_hashed_option;
        nu -> encapsulate = hashed_option_space_encapsulate;
@@ -4266,7 +4267,7 @@ int parse_option_token (rv, cfile, fmt, expr, uniform, lookups)
                break;
 
              default:
-               parse_warn (cfile, "Bad format %c in parse_option_param.",
+               parse_warn (cfile, "Bad format %c in parse_option_token.",
                            *fmt);
                skip_to_semi (cfile);
                return 0;