]> git.wh0rd.org - fontconfig.git/commit
FcName{,Get}Constant: constify string input
authorMike Frysinger <vapier@gentoo.org>
Mon, 7 Nov 2011 20:26:52 +0000 (15:26 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 21 Feb 2012 19:15:58 +0000 (14:15 -0500)
commit123d344f4590c45c5ccced8c46d157edb2b9efd2
treeb9d84b0da59e36d3ccab74767e679370724fa8f8
parentda763aa77dbaefd9be10ff5ad04ab5da39327b2e
FcName{,Get}Constant: constify string input

These funcs don't modify the incoming string, so add const markings.
This is the "right thing", shouldn't change the ABI, and fixes some
gcc warnings:

fccfg.c: In function 'FcConfigEvaluate':
fccfg.c:916:2: warning: passing argument 1 of 'IA__FcNameConstant'
discards 'const' qualifier from pointer target type [enabled by default]
fcalias.h:253:34: note: expected 'FcChar8 *' but
argument is of type 'const FcChar8 *'

fcxml.c: In function 'FcTypecheckExpr':
fcxml.c:604:2: warning: passing argument 1 of 'IA__FcNameGetConstant'
discards 'const' qualifier from pointer target type [enabled by default]
fcalias.h:251:37: note: expected 'FcChar8 *' but
argument is of type 'const FcChar8 *'

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
fontconfig/fontconfig.h
src/fcname.c