]> sourceware.org Git - glibc.git/commitdiff
* resolv/res_hconf.c (cmd): Mark as const.
authorUlrich Drepper <drepper@redhat.com>
Tue, 20 Dec 2005 18:25:49 +0000 (18:25 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 20 Dec 2005 18:25:49 +0000 (18:25 +0000)
(parse_line): Mark c as pointer to const.

ChangeLog
resolv/res_hconf.c

index 62f6e8ab9c31f9c6ce6c0c18552a53bdc2fa0a77..fcc06f52a587f3ce82a3c81673efbe9d5771d355 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-12-20  Ulrich Drepper  <drepper@redhat.com>
 
+       * resolv/res_hconf.c (cmd): Mark as const.
+       (parse_line): Mark c as pointer to const.
+
        * misc/getusershell.c (initshells): Remove unnecessary tests.
        (endusershell): Likewise.
        (okshells): Mark as const.
index 9beb881701477eb5020fa326522d260f0507c9ee..756a0987df0358023cf5bf87fcb4da148cbd77bb 100644 (file)
@@ -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;
 
This page took 0.051629 seconds and 5 git commands to generate.