From 67accef4d3e245c1dea341e633d82b14aa03432a Mon Sep 17 00:00:00 2001 From: Patrick Lam Date: Thu, 22 Sep 2005 23:45:53 +0000 Subject: Fix more gcc4 warnings: - Cast sizeof to int, to shut up signedness warnings in comparison. - Add consts where appropriate. reviewed by: Patrick Lam --- fc-case/fc-case.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fc-case') diff --git a/fc-case/fc-case.c b/fc-case/fc-case.c index 588ccf3a..f7f8277e 100644 --- a/fc-case/fc-case.c +++ b/fc-case/fc-case.c @@ -31,11 +31,11 @@ typedef enum _caseFoldClass { CaseFoldCommon, CaseFoldFull, CaseFoldSimple, CaseFoldTurkic } CaseFoldClass; typedef struct _caseFoldClassMap { - char *name; + const char *name; CaseFoldClass class; } CaseFoldClassMap; -static CaseFoldClassMap caseFoldClassMap[] = { +static const CaseFoldClassMap caseFoldClassMap[] = { { "C", CaseFoldCommon }, { "F", CaseFoldFull }, { "S", CaseFoldSimple }, @@ -51,7 +51,7 @@ typedef struct _caseFoldRaw { } CaseFoldRaw; static void -panic (char *reason) +panic (const char *reason) { fprintf (stderr, "fc-case: panic %s\n", reason); exit (1); @@ -148,7 +148,7 @@ foldExtends (FcCaseFold *fold, CaseFoldRaw *raw) return 0; } -static char * +static const char * case_fold_method_name (FcChar16 method) { switch (method) { -- cgit v1.2.3