Constify some more static structs.
This commit is contained in:
parent
1e71f82f3a
commit
9762fa5315
@ -211,7 +211,7 @@ int main(int argc, char **argv)
|
||||
struct passwd *pwd;
|
||||
uid_t uid = 0;
|
||||
gid_t gid = 0;
|
||||
static struct option arg_options[] = {
|
||||
static const struct option arg_options[] = {
|
||||
{"clientid", required_argument, 0, 'c'},
|
||||
{"foreground", no_argument, 0, 'f'},
|
||||
{"background", no_argument, 0, 'b'},
|
||||
|
@ -36,7 +36,7 @@ struct dhcp_option {
|
||||
#define OPTION_REQ 16
|
||||
// Marks an option that can be sent as a list of multiple items.
|
||||
#define OPTION_LIST 32
|
||||
static struct dhcp_option options[] = {
|
||||
static const struct dhcp_option options[] = {
|
||||
// name[10] type code
|
||||
{"subnet" , OPTION_IP | OPTION_LIST | OPTION_REQ, 0x01},
|
||||
{"timezone" , OPTION_S32, 0x02},
|
||||
|
Loading…
Reference in New Issue
Block a user