aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-12-09 21:48:45 +0100
committerJelmer Vernooij <jelmer@samba.org>2005-12-09 21:48:45 +0100
commit9df916f7d178f5b87e8ca35e3eb44343f3d2d955 (patch)
treece5e73987972e937a13b07adddcba4d6540807b0 /conf.c
parentc2295f7eeac263dbcc19f84e9a61abbe778aa9f8 (diff)
parent87c24bab5738824aba97a824b4c02f7a96b555a0 (diff)
Merge my storage abstraction changes
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/conf.c b/conf.c
index 51b7fbcc..304a15a8 100644
--- a/conf.c
+++ b/conf.c
@@ -49,6 +49,7 @@ conf_t *conf_load( int argc, char *argv[] )
conf->port = 6667;
conf->nofork = 0;
conf->verbose = 0;
+ conf->storage = "text";
conf->runmode = RUNMODE_INETD;
conf->authmode = AUTHMODE_OPEN;
conf->password = NULL;
@@ -197,6 +198,11 @@ static int conf_loadini( conf_t *conf, char *file )
g_free( conf->motdfile );
conf->motdfile = g_strdup( ini->value );
}
+ else if( g_strcasecmp( ini->key, "storage" ) == 0 )
+ {
+ g_free( conf->storage );
+ conf->storage = g_strdup( ini->value );
+ }
else if( g_strcasecmp( ini->key, "pinginterval" ) == 0 )
{
if( sscanf( ini->value, "%d", &i ) != 1 )