diff options
author | Patrick Lam <plam@MIT.EDU> | 2005-09-22 23:45:53 +0000 |
---|---|---|
committer | Patrick Lam <plam@MIT.EDU> | 2005-09-22 23:45:53 +0000 |
commit | 67accef4d3e245c1dea341e633d82b14aa03432a (patch) | |
tree | 3362ec7cd9a9ce3229bfab083fbb8b33a548b872 /fc-case | |
parent | 141432505aecb158285ccc84ec5d7099e3c2efa7 (diff) |
Fix more gcc4 warnings:
- Cast sizeof to int, to shut up signedness warnings in comparison.
- Add consts where appropriate.
reviewed by: Patrick Lam <plam@mit.edu>
Diffstat (limited to 'fc-case')
-rw-r--r-- | fc-case/fc-case.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fc-case/fc-case.c b/fc-case/fc-case.c index 588ccf3..f7f8277 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) { |