summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-08-02 21:49:39 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-08-02 21:49:39 -0700
commit9da873c5a036c95aa24a7dc3562d405609262381 (patch)
tree885bccc97202f39e836b5adeaf601dc6565b1b54
parent30859adfd6a6523a92a637ca26bd61ce59680a1b (diff)
downloadxorg-util-makedepend-9da873c5a036c95aa24a7dc3562d405609262381.tar.gz
Constify a pair of local string pointers
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.c b/parse.c
index e5240c3..1e2f263 100644
--- a/parse.c
+++ b/parse.c
@@ -496,8 +496,8 @@ merge2defines(struct inclist *file1, struct inclist *file2)
while ((last1 >= first1) && (last2 >= first2))
{
- char *s1=file1->i_defs[first1]->s_name;
- char *s2=file2->i_defs[first2]->s_name;
+ const char *s1 = file1->i_defs[first1]->s_name;
+ const char *s2 = file2->i_defs[first2]->s_name;
if (strcmp(s1,s2) < 0)
i_defs[first++]=file1->i_defs[first1++];