diff options
author | Peter Åstrand <astrand@cendio.se> | 2010-02-10 07:59:27 +0000 |
---|---|---|
committer | Peter Åstrand <astrand@cendio.se> | 2010-02-10 07:59:27 +0000 |
commit | f1037f4d4c1c775d66c12f113ec6c42712e40f63 (patch) | |
tree | 908f87288f382c20d776ec4255ec7becff090359 /common/rfb/ScaleFilters.cxx | |
parent | 309fc681c63b2e397fb800813e18d90667af32ac (diff) | |
download | tigervnc-f1037f4d4c1c775d66c12f113ec6c42712e40f63.tar.gz tigervnc-f1037f4d4c1c775d66c12f113ec6c42712e40f63.zip |
Eliminate GCC warning in ScaleFilters:
"deprecated conversion from string constant to 'char*"
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3970 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/ScaleFilters.cxx')
-rw-r--r-- | common/rfb/ScaleFilters.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/ScaleFilters.cxx b/common/rfb/ScaleFilters.cxx index a3ee53e8..07f3db85 100644 --- a/common/rfb/ScaleFilters.cxx +++ b/common/rfb/ScaleFilters.cxx @@ -82,7 +82,7 @@ void ScaleFilters::initFilters() { filters[scaleFilterBicubic] = create("Bicubic", 2, cubic); } -SFilter ScaleFilters::create(char *name_, double radius_, filter_func func_) { +SFilter ScaleFilters::create(const char *name_, double radius_, filter_func func_) { SFilter filter; strncpy(filter.name, name_, sizeof(filter.name)-1); filter.name[sizeof(filter.name)-1] = '\0'; |