Project "Tuxbox-GIT: apps":
The branch, master has been updated
via 4685e716e4874ac871105add130f6f1e6a77c933 (commit)
from e34c5ad4e29132d04bbc4ae5b0fe0aadae18b644 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4685e716e4874ac871105add130f6f1e6a77c933
Author: Christian Schuett <[email protected]>
Date: Sat Jun 21 14:43:24 2014 +0200
libconfigfile: accept booleans as int32 or int64
for compatibility if config file entry is changed from boolean to
int32 or int64
based on patch by martii <[email protected]> in Neutrino-MP Git
Signed-off-by: Christian Schuett <[email protected]>
Signed-off-by: Thilo Graf <[email protected]>
diff --git a/misc/libs/libconfigfile/configfile.cpp
b/misc/libs/libconfigfile/configfile.cpp
index b8e154b..b92fd67 100644
--- a/misc/libs/libconfigfile/configfile.cpp
+++ b/misc/libs/libconfigfile/configfile.cpp
@@ -205,6 +205,10 @@ int32_t CConfigFile::getInt32(const std::string & key,
const int32_t defaultVal)
}
}
+ if (configData[key] == "false")
+ return 0;
+ if (configData[key] == "true")
+ return 1;
return atoi(configData[key].c_str());
}
@@ -227,6 +231,10 @@ int64_t CConfigFile::getInt64(const std::string & key,
const int64_t defaultVal)
}
}
+ if (configData[key] == "false")
+ return 0;
+ if (configData[key] == "true")
+ return 1;
return atoll(configData[key].c_str());
}
-----------------------------------------------------------------------
Summary of changes:
misc/libs/libconfigfile/configfile.cpp | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
--
Tuxbox-GIT: apps
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Tuxbox-cvs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tuxbox-cvs-commits