Commit 5608b67f authored by Alan Coopersmith's avatar Alan Coopersmith Committed by Ulrich Sibiller

cmsColNm.c: maintain constness of arguments to qsort helper function

Fixes gcc warning: cmsColNm.c: In function 'FirstCmp': cmsColNm.c:257:20: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] cmsColNm.c:257:45: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] Signed-off-by: 's avatarAlan Coopersmith <alan.coopersmith@oracle.com> Backported-to-NX-by: 's avatarUlrich Sibiller <uli42@gmx.de>
parent 19275f9e
...@@ -255,7 +255,7 @@ FirstCmp(const void *p1, const void *p2) ...@@ -255,7 +255,7 @@ FirstCmp(const void *p1, const void *p2)
* *
*/ */
{ {
return(strcmp(((XcmsPair *)p1)->first, ((XcmsPair *)p2)->first)); return(strcmp(((const XcmsPair *)p1)->first, ((const XcmsPair *)p2)->first));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment