From be009b9a889f4c58f69b4fb4bd8f5e98b9700555 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Mon, 7 Jul 2014 01:59:03 -0400 Subject: * maintMakefile, various: Improve constification of the codebase. --- rule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rule.c') diff --git a/rule.c b/rule.c index e5716c5e..986ada74 100644 --- a/rule.c +++ b/rule.c @@ -357,7 +357,7 @@ void install_pattern_rule (struct pspec *p, int terminal) { struct rule *r; - char *ptr; + const char *ptr; r = xmalloc (sizeof (struct rule)); @@ -373,7 +373,7 @@ install_pattern_rule (struct pspec *p, int terminal) ++r->suffixes[0]; ptr = p->dep; - r->deps = PARSE_SIMPLE_SEQ (&ptr, struct dep); + r->deps = PARSE_SIMPLE_SEQ ((char **)&ptr, struct dep); if (new_pattern_rule (r, 0)) { -- cgit v1.2.1