summaryrefslogtreecommitdiffstats
path: root/common/log.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2013-08-24 22:41:44 -0700
committerJay Sorg <jay.sorg@gmail.com>2013-08-24 22:41:44 -0700
commit1a616a1b469a00279ac6d42cffcd2b23da492c60 (patch)
treef99d7ef5784236dc52089ee3fb592a71ac930066 /common/log.c
parent9538ca422b03c003d30cba30f3907723a22f3ea1 (diff)
downloadxrdp-proprietary-1a616a1b469a00279ac6d42cffcd2b23da492c60.tar.gz
xrdp-proprietary-1a616a1b469a00279ac6d42cffcd2b23da492c60.zip
move text2bool to os_calls
Diffstat (limited to 'common/log.c')
-rw-r--r--common/log.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/common/log.c b/common/log.c
index ce0000aa..55353a8f 100644
--- a/common/log.c
+++ b/common/log.c
@@ -363,7 +363,7 @@ internal_config_read_logging(int file, struct log_config *lc,
if (0 == g_strcasecmp(buf, SESMAN_CFG_LOG_ENABLE_SYSLOG))
{
- lc->enable_syslog = text2bool((char *)list_get_item(param_v, i));
+ lc->enable_syslog = g_text2bool((char *)list_get_item(param_v, i));
}
if (0 == g_strcasecmp(buf, SESMAN_CFG_LOG_SYSLOG_LEVEL))
@@ -413,28 +413,6 @@ internalInitAndAllocStruct(void)
* Here below the public functions
*/
-
-/**
- *
- * @brief Reads sesman configuration
- * @param s translates the strings "1", "true" and "yes" in 1 (true) and other strings in 0
- * @return 0 on false, 1 on 1,true, yes
- *
- */
-int APP_CC
-text2bool(char *s)
-{
- if ( (g_atoi(s) != 0) ||
- (0 == g_strcasecmp(s, "true")) ||
- (0 == g_strcasecmp(s, "on")) ||
- (0 == g_strcasecmp(s, "yes")))
- {
- return 1;
- }
-
- return 0;
-}
-
enum logReturns DEFAULT_CC
log_start_from_param(const struct log_config *iniParams)
{