From cc2f0a2bb9d693cc44182f33f979e2628c99d75e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 20 Dec 2005 18:35:45 +0000 Subject: * resolv/res_hconf.c (arg_service_list): Reduce size of svcs and mark const. (cmd): Mark as const. --- ChangeLog | 4 +++- resolv/res_hconf.c | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index fcc06f52a5..80c8933d55 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ 2005-12-20 Ulrich Drepper - * resolv/res_hconf.c (cmd): Mark as const. + * resolv/res_hconf.c (arg_service_list): Reduce size of svcs and + mark const. + (cmd): Mark as const. (parse_line): Mark c as pointer to const. * misc/getusershell.c (initshells): Remove unnecessary tests. diff --git a/resolv/res_hconf.c b/resolv/res_hconf.c index 756a0987df..c54b28dadd 100644 --- a/resolv/res_hconf.c +++ b/resolv/res_hconf.c @@ -114,10 +114,10 @@ arg_service_list (const char *fname, int line_num, const char *args, const char *start; size_t len; size_t i; - static struct + static const struct { - const char * name; - enum Name_Service service; + const char name[6]; + int16_t service; } svcs[] = { {"bind", SERVICE_BIND}, -- cgit 1.4.1