]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/plr/server/src/configuration
update
[l4.git] / l4 / pkg / plr / server / src / configuration
index 00a4379f763db3e5e9f4f9f035b7c2ff4910f5e9..eedcd8408e8b1af1ace895d7c46bcbaae57ccc9a 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Handling of Romain config stuff
  *
- * (c) 2011-2012 Björn Döbel <doebel@os.inf.tu-dresden.de>,
+ * (c) 2011-2013 Björn Döbel <doebel@os.inf.tu-dresden.de>,
  *     economic rights: Technische Universität Dresden (Germany)
  * This file is part of TUD:OS and distributed under the terms of the
  * GNU General Public License 2.
@@ -74,10 +74,10 @@ struct ConfigIntValue : public ConfigValue
 struct ConfigStringValue : public ConfigValue
 {
        char const *_val;
-       ConfigStringValue(char const * const key, char *_default = 0)
+       ConfigStringValue(char const * const key, char const *_default = 0)
                : ConfigValue()
        {
-               _val = iniparser_getstring(_dict, key, _default);
+               _val = iniparser_getstring(_dict, key, const_cast<char*>(_default));
        }
 
        operator char const *() { return _val; }