(arg_service_list): Reduce size of svcs and mark const.
authordrepper <drepper>
Tue, 20 Dec 2005 18:33:06 +0000 (18:33 +0000)
committerdrepper <drepper>
Tue, 20 Dec 2005 18:33:06 +0000 (18:33 +0000)
resolv/res_hconf.c

index 756a098..c54b28d 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},