From 6c7915c10548132c3f7d0c00d08fdb268e5da6d4 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 14 Mar 2011 18:21:32 -0300 Subject: [PATCH] Mark constant strings as constant Fixes a few compiler warnings in fcxml.c and makes it clear that they should not be freed. --- doc/fcatomic.fncs | 2 +- src/fcint.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/fcatomic.fncs b/doc/fcatomic.fncs index 017756a..1653009 100644 --- a/doc/fcatomic.fncs +++ b/doc/fcatomic.fncs @@ -57,7 +57,7 @@ by atomic. @TYPE1@ FcAtomic * @ARG1@ atomic @PURPOSE@ return original file name @DESC@ -Returns the file referenced by atomic. +Returns the file refernced by atomic. @@ @RET@ FcBool diff --git a/src/fcint.h b/src/fcint.h index e662c37..a2313df 100644 --- a/src/fcint.h +++ b/src/fcint.h @@ -239,13 +239,13 @@ typedef struct _FcExpr { union { int ival; double dval; - FcChar8 *sval; + const FcChar8 *sval; FcMatrix *mval; FcBool bval; FcCharSet *cval; FcLangSet *lval; FcObject object; - FcChar8 *constant; + const FcChar8 *constant; struct { struct _FcExpr *left, *right; } tree;