summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-05-23 23:20:03 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-05-23 23:20:03 -0700
commit5e0f1b91edb97759e2c07ec233c2ce8639c8e0fe (patch)
treea73abf95ea3c6fdf8018a8aa1cbb990671233dbd /include
parent88be5c37c40070305e64c4b8dc0a1c1f6ca80440 (diff)
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@oracle.com>
Diffstat (limited to 'include')
-rw-r--r--include/X11/fonts/FSlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/X11/fonts/FSlib.h b/include/X11/fonts/FSlib.h
index 1cd7f13..ee6f245 100644
--- a/include/X11/fonts/FSlib.h
+++ b/include/X11/fonts/FSlib.h
@@ -252,7 +252,7 @@ extern char ** FSListExtensions ( FSServer *svr, int *next );
extern int FSQueryExtension ( FSServer *svr, char *name, int *major_opcode,
int *first_event, int *first_error );
-extern char ** FSListCatalogues ( FSServer *svr, char *pattern,
+extern char ** FSListCatalogues ( FSServer *svr, const char *pattern,
int maxNames, int *actualCount );
extern char ** FSGetCatalogues ( FSServer *svr, int *num );