aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/cmsColNm.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-02-15 22:45:19 -0800
committerUlrich Sibiller <uli42@gmx.de>2016-10-19 21:40:26 +0200
commit5608b67f2bfafcee9ac82434aa4fa7e532ffb472 (patch)
treef18001bb3b86f15e5205fc9d41942912fc005d41 /nx-X11/lib/X11/cmsColNm.c
parent19275f9e196c13e5ebab807da34b69f0defef1b6 (diff)
downloadnx-libs-5608b67f2bfafcee9ac82434aa4fa7e532ffb472.tar.gz
nx-libs-5608b67f2bfafcee9ac82434aa4fa7e532ffb472.tar.bz2
nx-libs-5608b67f2bfafcee9ac82434aa4fa7e532ffb472.zip
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: Alan Coopersmith <alan.coopersmith@oracle.com> Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib/X11/cmsColNm.c')
-rw-r--r--nx-X11/lib/X11/cmsColNm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/lib/X11/cmsColNm.c b/nx-X11/lib/X11/cmsColNm.c
index 4b6739adf..a56141021 100644
--- a/nx-X11/lib/X11/cmsColNm.c
+++ b/nx-X11/lib/X11/cmsColNm.c
@@ -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));
}