From 9762fa5315763ff2e297c5d9605b1301f6c28521 Mon Sep 17 00:00:00 2001 From: "Nicholas J. Kain" Date: Mon, 11 Jul 2011 05:35:40 -0400 Subject: [PATCH] Constify some more static structs. --- ndhc/ndhc.c | 2 +- ndhc/options.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ndhc/ndhc.c b/ndhc/ndhc.c index 1c10a46..c15b2d7 100644 --- a/ndhc/ndhc.c +++ b/ndhc/ndhc.c @@ -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'}, diff --git a/ndhc/options.c b/ndhc/options.c index 45eee32..4f4f71a 100644 --- a/ndhc/options.c +++ b/ndhc/options.c @@ -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},