From c4be2fb6c3ae3d6bfa9f767d40578b2680ab58af Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 10 Nov 2011 22:09:54 -0800 Subject: Fix gcc -Wwrite-strings warnings Signed-off-by: Alan Coopersmith --- fslsfonts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fslsfonts.c b/fslsfonts.c index baa0d90..1141cbe 100644 --- a/fslsfonts.c +++ b/fslsfonts.c @@ -80,7 +80,7 @@ static FSServer *svr; static char *program_name; static void usage ( void ); -static void get_list ( char *pattern ); +static void get_list ( const char *pattern ); static int compare ( const void *f1, const void *f2 ); static void show_fonts ( void ); static void print_font_header ( void ); @@ -208,7 +208,7 @@ next: ; } static void -get_list(char *pattern) +get_list(const char *pattern) { int available = nnames + 1, i; @@ -387,7 +387,7 @@ print_font_header(void) static void show_font_header(FontList *list) { - char *string; + const char *string; FSXFontInfoHeader *pfh; pfh = list->info; -- cgit v1.2.3