summaryrefslogtreecommitdiff
path: root/rule.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2014-04-25 17:10:47 -0400
committerPaul Smith <psmith@gnu.org>2014-07-07 01:59:03 -0400
commitac67346d0fb5e5ea359d34c2c9215bd1892455f3 (patch)
tree5e6c7f534a34aa90f3da9b522cfa31ab4181b3d3 /rule.c
parente364498113e145b5ac424325e3903cc2287d7e7f (diff)
downloadgunmake-ac67346d0fb5e5ea359d34c2c9215bd1892455f3.tar.gz
* maintMakefile, various: Improve constification of the codebase.
Diffstat (limited to 'rule.c')
-rw-r--r--rule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rule.c b/rule.c
index e5716c5..986ada7 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))
{