Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
9e655bc3
Commit
9e655bc3
authored
Dec 11, 2012
by
Marcin Siodelski
Browse files
[2526] Removed static keyword from declarations.
parent
21da96d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcp/std_option_defs.h
View file @
9e655bc3
...
...
@@ -25,7 +25,7 @@ namespace {
/// @param name name of the array being declared.
/// @param types data types of fields that belong to the record.
#ifndef RECORD_DECL
#define RECORD_DECL(name, types...)
static
const OptionDataType name[] = { types }
#define RECORD_DECL(name, types...) const OptionDataType name[] = { types }
#endif
/// @brief A pair of values: one pointing to the array holding types of
...
...
@@ -59,7 +59,7 @@ struct OptionDefParams {
RECORD_DECL
(
FQDN_RECORDS
,
OPT_UINT8_TYPE
,
OPT_UINT8_TYPE
,
OPT_STRING_TYPE
);
/// @brief Definitions of standard DHCPv4 options.
static
const
OptionDefParams
OPTION_DEF_PARAMS4
[]
=
{
const
OptionDefParams
OPTION_DEF_PARAMS4
[]
=
{
{
"subnet-mask"
,
DHO_SUBNET_MASK
,
OPT_IPV4_ADDRESS_TYPE
,
false
},
{
"time-offset"
,
DHO_TIME_OFFSET
,
OPT_UINT32_TYPE
,
false
},
{
"routers"
,
DHO_ROUTERS
,
OPT_IPV4_ADDRESS_TYPE
,
true
},
...
...
@@ -222,7 +222,7 @@ RECORD_DECL(VENDOR_CLASS_RECORDS, OPT_UINT32_TYPE, OPT_BINARY_TYPE);
RECORD_DECL
(
VENDOR_OPTS_RECORDS
,
OPT_UINT32_TYPE
,
OPT_BINARY_TYPE
);
/// Standard DHCPv6 option definitions.
static
const
OptionDefParams
OPTION_DEF_PARAMS6
[]
=
{
const
OptionDefParams
OPTION_DEF_PARAMS6
[]
=
{
{
"clientid"
,
D6O_CLIENTID
,
OPT_BINARY_TYPE
,
false
},
{
"serverid"
,
D6O_SERVERID
,
OPT_BINARY_TYPE
,
false
},
{
"ia-na"
,
D6O_IA_NA
,
OPT_RECORD_TYPE
,
false
,
RECORD_DEF
(
IA_NA_RECORDS
)
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment