about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-12-20 18:35:45 +0000
committerUlrich Drepper <drepper@redhat.com>2005-12-20 18:35:45 +0000
commitcc2f0a2bb9d693cc44182f33f979e2628c99d75e (patch)
tree576cc9052782d2fdf89f037317e098770590805d
parent545f1b1177b56028d80fd09c82e242259cc700dd (diff)
downloadglibc-cc2f0a2bb9d693cc44182f33f979e2628c99d75e.tar.gz
glibc-cc2f0a2bb9d693cc44182f33f979e2628c99d75e.tar.xz
glibc-cc2f0a2bb9d693cc44182f33f979e2628c99d75e.zip
* resolv/res_hconf.c (arg_service_list): Reduce size of svcs and
	mark const.
	(cmd): Mark as const.
-rw-r--r--ChangeLog4
-rw-r--r--resolv/res_hconf.c6
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  <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.
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},