use common/cfg-master.c:_DC_initClientConfig() to pass config params

to client defined by CFG_SENDKEYS param


git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@861 a7169a2c-3604-0410-bc95-c702d8d87f7a
This commit is contained in:
drdani 2006-08-23 08:28:01 +00:00 committed by Adam Visegradi
parent 34b631100c
commit 2faa1c47f0
1 changed files with 5 additions and 4 deletions

View File

@ -305,10 +305,11 @@ _DC_wu_make_client_config(DC_Workunit *wu)
g_string_append(fn, CLIENT_CONFIG_NAME);
if ((f= fopen(fn->str, "w")) != NULL)
{
fprintf(f, "LogLevel = %s\n",
DC_getClientCfgStr(wu->data.client_name,
"LogLevel",
TRUE));
if (_DC_initClientConfig(wu->data.client_name, f))
{
fclose(f);
return(DC_ERR_BADPARAM);
}
fprintf(f, "LogFile = %s\n",
DC_getClientCfgStr(wu->data.client_name,
"LogFile",