summaryrefslogtreecommitdiff
path: root/accel-pppd/triton/options.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-11-22 08:56:40 +0300
committerDmitry Kozlov <xeb@mail.ru>2014-11-22 08:56:40 +0300
commit81ca3923a29ea9b67f7291be23b210019546aa5f (patch)
treefcebf0d426665b4f06e01168f27cd8f9ab8c50d8 /accel-pppd/triton/options.c
parent830c399cf126f6bf1e8dfa1ad919a3ce8e346c5d (diff)
downloadaccel-ppp-81ca3923a29ea9b67f7291be23b210019546aa5f.tar.gz
accel-ppp-81ca3923a29ea9b67f7291be23b210019546aa5f.zip
remove trailing whitespaces
Diffstat (limited to 'accel-pppd/triton/options.c')
-rw-r--r--accel-pppd/triton/options.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/accel-pppd/triton/options.c b/accel-pppd/triton/options.c
index a5214e2..8ff617c 100644
--- a/accel-pppd/triton/options.c
+++ b/accel-pppd/triton/options.c
@@ -11,38 +11,38 @@ static struct conf_file_sect_t *sect=NULL;
static const char* find_option(const char *name)
{
struct option_t *opt;
-
+
if (!sect)
{
sect=conf_file_get_section("options");
if (!sect) return 0;
}
-
+
list_for_each_entry(opt,&sect->items,entry)
{
if (strcmp(opt->name,name)==0)
return opt->val;
}
-
+
return NULL;
}
int triton_get_int_option(const char *str)
{
const char *val=find_option(str);
if (!val) return 0;
-
+
return atoi(val);
}
const char* triton_get_str_option(const char *str)
{
const char *val=find_option(str);
-
+
return val;
}
double triton_get_double_option(const char *str)
{
const char *val=find_option(str);
if (!val) return 0;
-
+
return atof(val);
}