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