libFS: Changes to 'master'
Alan Coopersmith
alanc at kemper.freedesktop.org
Wed Jun 4 23:28:58 PDT 2014
include/X11/fonts/FSlib.h | 2 +-
src/FSListCats.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 5e0f1b91edb97759e2c07ec233c2ce8639c8e0fe
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Fri May 23 23:20:03 2014 -0700
Constify pattern argument to FSListCatalogues
The contents of pattern are simply copied to the request sent to
the font server and never touched again, so can be labeled read-only.
Fixes compiler warning building xfsinfo:
xfsinfo.c: In function âprint_catalogue_infoâ:
xfsinfo.c:158:5: warning: passing argument 2 of âFSListCataloguesâ discards
âconstâ qualifier from pointer target type [enabled by default]
char **cats = FSListCatalogues(svr, "*", 1000, &n);
^
In file included from xfsinfo.c:66:0:
FSlib.h:255:16: note: expected âchar *â but argument is of type âconst char *â
extern char ** FSListCatalogues ( FSServer *svr, char *pattern,
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
More information about the xorg-commit
mailing list