From: Marcin Siodelski Date: Mon, 17 Dec 2012 20:20:48 +0000 (+0100) Subject: [master] Initialize all members of the structure describing DHCP option. X-Git-Tag: bind10-1.0.0-beta-release~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ea8e70a330e7930e3be85fcb6fe6ac7ca44fc643;p=thirdparty%2Fkea.git [master] Initialize all members of the structure describing DHCP option. When building with GCC on Solaris it is required that all memebers of the struct are explicitly initialized. For a few entries, in the array describing DHCPv4 options, the the initializers were accidentally ommitted causing a build to fail. Okayed on jabber. --- diff --git a/src/lib/dhcp/std_option_defs.h b/src/lib/dhcp/std_option_defs.h index 048be6aca9..144df8b875 100644 --- a/src/lib/dhcp/std_option_defs.h +++ b/src/lib/dhcp/std_option_defs.h @@ -69,12 +69,12 @@ const OptionDefParams OPTION_DEF_PARAMS4[] = { { "routers", DHO_ROUTERS, OPT_IPV4_ADDRESS_TYPE, true, NO_RECORD_DEF }, { "time-servers", DHO_TIME_SERVERS, OPT_IPV4_ADDRESS_TYPE, true, NO_RECORD_DEF }, { "name-servers", DHO_NAME_SERVERS, OPT_IPV4_ADDRESS_TYPE, - false }, + false, NO_RECORD_DEF }, { "domain-name-servers", DHO_DOMAIN_NAME_SERVERS, OPT_IPV4_ADDRESS_TYPE, true, NO_RECORD_DEF }, { "log-servers", DHO_LOG_SERVERS, OPT_IPV4_ADDRESS_TYPE, true, NO_RECORD_DEF }, { "cookie-servers", DHO_COOKIE_SERVERS, OPT_IPV4_ADDRESS_TYPE, - true }, + true, NO_RECORD_DEF }, { "lpr-servers", DHO_LPR_SERVERS, OPT_IPV4_ADDRESS_TYPE, true, NO_RECORD_DEF }, { "impress-servers", DHO_IMPRESS_SERVERS, OPT_IPV4_ADDRESS_TYPE, true, NO_RECORD_DEF }, { "resource-location-servers", DHO_RESOURCE_LOCATION_SERVERS, @@ -86,7 +86,7 @@ const OptionDefParams OPTION_DEF_PARAMS4[] = { { "swap-server", DHO_SWAP_SERVER, OPT_IPV4_ADDRESS_TYPE, false, NO_RECORD_DEF }, { "root-path", DHO_ROOT_PATH, OPT_STRING_TYPE, false, NO_RECORD_DEF }, { "extensions-path", DHO_EXTENSIONS_PATH, OPT_STRING_TYPE, - false }, + false, NO_RECORD_DEF }, { "ip-forwarding", DHO_IP_FORWARDING, OPT_BOOLEAN_TYPE, false, NO_RECORD_DEF }, { "non-local-source-routing", DHO_NON_LOCAL_SOURCE_ROUTING, OPT_BOOLEAN_TYPE, false, NO_RECORD_DEF }, @@ -185,7 +185,7 @@ const OptionDefParams OPTION_DEF_PARAMS4[] = { { "vivco-suboptions", DHO_VIVCO_SUBOPTIONS, OPT_BINARY_TYPE, false, NO_RECORD_DEF }, { "vivso-suboptions", DHO_VIVSO_SUBOPTIONS, OPT_BINARY_TYPE, - false } + false, NO_RECORD_DEF } // @todo add definitions for all remaning options. };