diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-02 21:49:39 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-02 21:49:39 -0700 |
commit | 9da873c5a036c95aa24a7dc3562d405609262381 (patch) | |
tree | 885bccc97202f39e836b5adeaf601dc6565b1b54 | |
parent | 30859adfd6a6523a92a637ca26bd61ce59680a1b (diff) |
Constify a pair of local string pointers
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++]; |