diff options
Diffstat (limited to 'networking/udhcp/files.c')
-rw-r--r-- | networking/udhcp/files.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/udhcp/files.c b/networking/udhcp/files.c index 05a7b998a..fddda4cba 100644 --- a/networking/udhcp/files.c +++ b/networking/udhcp/files.c | |||
@@ -145,7 +145,7 @@ static NOINLINE void attach_option( | |||
145 | } | 145 | } |
146 | 146 | ||
147 | /* read a dhcp option and add it to opt_list */ | 147 | /* read a dhcp option and add it to opt_list */ |
148 | static int FAST_FUNC read_opt(const char *const_line, void *arg) | 148 | int FAST_FUNC udhcp_str2optset(const char *const_line, void *arg) |
149 | { | 149 | { |
150 | struct option_set **opt_list = arg; | 150 | struct option_set **opt_list = arg; |
151 | char *opt, *val, *endptr; | 151 | char *opt, *val, *endptr; |
@@ -292,8 +292,8 @@ static const struct config_keyword keywords[] = { | |||
292 | {"pidfile", read_str, &(server_config.pidfile), "/var/run/udhcpd.pid"}, | 292 | {"pidfile", read_str, &(server_config.pidfile), "/var/run/udhcpd.pid"}, |
293 | {"siaddr", read_nip, &(server_config.siaddr_nip), "0.0.0.0"}, | 293 | {"siaddr", read_nip, &(server_config.siaddr_nip), "0.0.0.0"}, |
294 | /* keywords with no defaults must be last! */ | 294 | /* keywords with no defaults must be last! */ |
295 | {"option", read_opt, &(server_config.options), ""}, | 295 | {"option", udhcp_str2optset, &(server_config.options), ""}, |
296 | {"opt", read_opt, &(server_config.options), ""}, | 296 | {"opt", udhcp_str2optset, &(server_config.options), ""}, |
297 | {"notify_file", read_str, &(server_config.notify_file), ""}, | 297 | {"notify_file", read_str, &(server_config.notify_file), ""}, |
298 | {"sname", read_str, &(server_config.sname), ""}, | 298 | {"sname", read_str, &(server_config.sname), ""}, |
299 | {"boot_file", read_str, &(server_config.boot_file), ""}, | 299 | {"boot_file", read_str, &(server_config.boot_file), ""}, |