diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-07-16 14:09:52 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-07-16 14:09:52 +0000 |
commit | 6b4cd68c66d670cd149dac8234b53038ca89fd3e (patch) | |
tree | fd5ffa1a00bda04f98f8d5bdad2a14839f9f7875 /sbin/dhclient/dhcpd.h | |
parent | 334d3fa8dbae7379d3a5934f3128e41482fb8c42 (diff) |
Eliminate unnecessary 'code' field from struct option. Make
dhcp_options const.
ok henning@
Diffstat (limited to 'sbin/dhclient/dhcpd.h')
-rw-r--r-- | sbin/dhclient/dhcpd.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/dhclient/dhcpd.h b/sbin/dhclient/dhcpd.h index 9b612310b85..43ecb8d4556 100644 --- a/sbin/dhclient/dhcpd.h +++ b/sbin/dhclient/dhcpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dhcpd.h,v 1.42 2005/07/13 23:25:55 krw Exp $ */ +/* $OpenBSD: dhcpd.h,v 1.43 2005/07/16 14:09:51 krw Exp $ */ /* * Copyright (c) 2004 Henning Brauer <henning@openbsd.org> @@ -292,7 +292,7 @@ void remove_protocol(struct protocol *); int interface_link_status(char *); /* tables.c */ -extern struct option dhcp_options[256]; +extern const struct option dhcp_options[256]; /* convert.c */ u_int32_t getULong(unsigned char *); @@ -355,7 +355,7 @@ void client_envadd(struct client_state *, void script_set_env(struct client_state *, const char *, const char *, const char *); void script_flush_env(struct client_state *); -int dhcp_option_ev_name(char *, size_t, struct option *); +int dhcp_option_ev_name(char *, size_t, const struct option *); struct client_lease *packet_to_lease(struct packet *); void go_daemon(void); @@ -393,7 +393,7 @@ void make_client_config(struct interface_info *, struct client_config *); void parse_client_lease_statement(FILE *, int); void parse_client_lease_declaration(FILE *, struct client_lease *, struct interface_info **); -struct option *parse_option_decl(FILE *, struct option_data *); +int parse_option_decl(FILE *, struct option_data *); void parse_string_list(FILE *, struct string_list **, int); void parse_reject_statement(FILE *, struct client_config *); |