diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-04 23:21:34 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-23 12:15:07 -0800 |
commit | 05f589d464a961aea8d25632a390fb66a06cd186 (patch) | |
tree | 76ed00ac377c882f2ba7f1c8f8f19926375d6aca /render | |
parent | 232f1ddf3d060f3ce9d2ebd35f33b1294cac380e (diff) |
Fix gcc -Wwrite-strings warnings in various extensions
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'render')
-rw-r--r-- | render/filter.c | 6 | ||||
-rw-r--r-- | render/picturestr.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/render/filter.c b/render/filter.c index 8bb6d5ec2..0cbd47bd2 100644 --- a/render/filter.c +++ b/render/filter.c @@ -47,7 +47,7 @@ static int nfilterNames; */ int -PictureGetFilterId (char *filter, int len, Bool makeit) +PictureGetFilterId (const char *filter, int len, Bool makeit) { int i; char *name; @@ -125,7 +125,7 @@ PictureFreeFilterIds (void) int PictureAddFilter (ScreenPtr pScreen, - char *filter, + const char *filter, PictFilterValidateParamsProcPtr ValidateParams, int width, int height) @@ -160,7 +160,7 @@ PictureAddFilter (ScreenPtr pScreen, } Bool -PictureSetFilterAlias (ScreenPtr pScreen, char *filter, char *alias) +PictureSetFilterAlias (ScreenPtr pScreen, const char *filter, const char *alias) { PictureScreenPtr ps = GetPictureScreen(pScreen); int filter_id = PictureGetFilterId (filter, -1, FALSE); diff --git a/render/picturestr.h b/render/picturestr.h index 1f3f5a433..9b376710e 100644 --- a/render/picturestr.h +++ b/render/picturestr.h @@ -433,20 +433,20 @@ extern _X_EXPORT Bool PictureInit (ScreenPtr pScreen, PictFormatPtr formats, int nformats); extern _X_EXPORT int -PictureGetFilterId (char *filter, int len, Bool makeit); +PictureGetFilterId (const char *filter, int len, Bool makeit); extern _X_EXPORT char * PictureGetFilterName (int id); extern _X_EXPORT int PictureAddFilter (ScreenPtr pScreen, - char *filter, + const char *filter, PictFilterValidateParamsProcPtr ValidateParams, int width, int height); extern _X_EXPORT Bool -PictureSetFilterAlias (ScreenPtr pScreen, char *filter, char *alias); +PictureSetFilterAlias (ScreenPtr pScreen, const char *filter, const char *alias); extern _X_EXPORT Bool PictureSetDefaultFilters (ScreenPtr pScreen); |