about summary refs log tree commit diff
path: root/resolv/res_hconf.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-12-20 18:25:49 +0000
committerUlrich Drepper <drepper@redhat.com>2005-12-20 18:25:49 +0000
commit545f1b1177b56028d80fd09c82e242259cc700dd (patch)
treef28e5f27e624f19c1f65405bb5667ffdeb14227e /resolv/res_hconf.c
parent970362dc5632a62dd1bf7ecb20dc112ed1528267 (diff)
downloadglibc-545f1b1177b56028d80fd09c82e242259cc700dd.tar.gz
glibc-545f1b1177b56028d80fd09c82e242259cc700dd.tar.xz
glibc-545f1b1177b56028d80fd09c82e242259cc700dd.zip
* resolv/res_hconf.c (cmd): Mark as const.
	(parse_line): Mark c as pointer to const.
Diffstat (limited to 'resolv/res_hconf.c')
-rw-r--r--resolv/res_hconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/resolv/res_hconf.c b/resolv/res_hconf.c
index 9beb881701..756a0987df 100644
--- a/resolv/res_hconf.c
+++ b/resolv/res_hconf.c
@@ -67,7 +67,7 @@ static const char *arg_trimdomain_list (const char *, int, const char *,
 static const char *arg_spoof (const char *, int, const char *, unsigned int);
 static const char *arg_bool (const char *, int, const char *, unsigned int);
 
-static struct cmd
+static const struct cmd
 {
   const char *name;
   const char *(*parse_args) (const char * filename, int line_num,
@@ -315,7 +315,7 @@ static void
 parse_line (const char *fname, int line_num, const char *str)
 {
   const char *start;
-  struct cmd *c = 0;
+  const struct cmd *c = 0;
   size_t len;
   size_t i;