Constify some more static structs.

This commit is contained in:
Nicholas J. Kain 2011-07-11 05:35:40 -04:00
parent 1e71f82f3a
commit 9762fa5315
2 changed files with 2 additions and 2 deletions

View File

@ -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'},

View File

@ -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},