From 447b3268bfb2d6a92d105ad75c2ac5462f1adecb Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 11 Nov 2011 22:54:21 -0800 Subject: Mark pattern argument to FSListFonts* as const char * Needed to fix gcc -Wwrite-strings warnings in clients such as fslsfonts Signed-off-by: Alan Coopersmith --- include/X11/fonts/FSlib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/X11/fonts') diff --git a/include/X11/fonts/FSlib.h b/include/X11/fonts/FSlib.h index fbc2dc9..11b3ba6 100644 --- a/include/X11/fonts/FSlib.h +++ b/include/X11/fonts/FSlib.h @@ -258,9 +258,9 @@ extern char ** FSGetCatalogues ( FSServer *svr, int *num ); extern long FSMaxRequestSize ( FSServer *svr ); -extern char ** FSListFonts ( FSServer *svr, char *pattern, int maxNames, +extern char ** FSListFonts ( FSServer *svr, const char *pattern, int maxNames, int *actualCount ); -extern char ** FSListFontsWithXInfo ( FSServer *svr, char *pattern, +extern char ** FSListFontsWithXInfo ( FSServer *svr, const char *pattern, int maxNames, int *count, FSXFontInfoHeader ***info, FSPropInfo ***pprops, -- cgit v1.2.3