* resolv/res_hconf.c (arg_service_list): Reduce size of svcs and
authorUlrich Drepper <drepper@redhat.com>
Tue, 20 Dec 2005 18:35:45 +0000 (18:35 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 20 Dec 2005 18:35:45 +0000 (18:35 +0000)
mark const.
(cmd): Mark as const.

ChangeLog
resolv/res_hconf.c

index fcc06f52a587f3ce82a3c81673efbe9d5771d355..80c8933d55dec6fd4dc9a757a78e30ea3153e997 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
 2005-12-20  Ulrich Drepper  <drepper@redhat.com>
 
-       * 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.
index 756a0987df0358023cf5bf87fcb4da148cbd77bb..c54b28dadd4200a7ea00372d671150d51736f159 100644 (file)
@@ -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},