From 545f1b1177b56028d80fd09c82e242259cc700dd Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 20 Dec 2005 18:25:49 +0000 Subject: * resolv/res_hconf.c (cmd): Mark as const. (parse_line): Mark c as pointer to const. --- ChangeLog | 3 +++ resolv/res_hconf.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 62f6e8a..fcc06f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-12-20 Ulrich Drepper + * 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. diff --git a/resolv/res_hconf.c b/resolv/res_hconf.c index 9beb881..756a098 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; -- cgit v1.1