]> 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>
Mon, 7 Nov 2011 20:29:31 +0000 (15:29 -0500)
commit4d93d3a0d0f5d9b6a0a1cc27cad63f67ce085b3b
tree7601486ad3d5dad99498efe0ee7a99e5d1b37834
parenta9c34164f2c16fad92476fca54a4034c6f08e6fa
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