--- l2_ch_syslog.c 2001/11/07 11:37:18 1.26
+++ l2_ch_syslog.c 2001/11/07 13:05:20 1.27
@@ -161,20 +161,22 @@
l2_ch_syslog_t *cfg = (l2_ch_syslog_t *)ctx->vp;
l2_param_t pa[8];
l2_result_t rv;
+ l2_env_t *env;
int i;
/* feed and call generic parameter parsing engine */
- L2_PARAM_SET(pa[0], target, STRING, &cfg->szTarget);
- L2_PARAM_SET(pa[1], remotehost, STRING, &cfg->szRemoteHost);
- L2_PARAM_SET(pa[2], remoteport, INT, &cfg->nRemotePort);
- L2_PARAM_SET(pa[3], localhost, STRING, &cfg->szLocalHost);
- L2_PARAM_SET(pa[4], facility, STRING, &cfg->szFacility);
- L2_PARAM_SET(pa[5], ident, STRING, &cfg->szIdent);
- L2_PARAM_SET(pa[6], logpid, INT, &cfg->bLogPid);
+ L2_PARAM_SET(pa[0], target, STR, &cfg->szTarget);
+ L2_PARAM_SET(pa[1], remotehost, STR, &cfg->szRemoteHost);
+ L2_PARAM_SET(pa[2], remoteport, INT, &cfg->nRemotePort);
+ L2_PARAM_SET(pa[3], localhost, STR, &cfg->szLocalHost);
+ L2_PARAM_SET(pa[4], facility, STR, &cfg->szFacility);
+ L2_PARAM_SET(pa[5], ident, STR, &cfg->szIdent);
+ L2_PARAM_SET(pa[6], logpid, INT, &cfg->bLogPid);
L2_PARAM_END(pa[7]);
/* sanity checking & post-processing */
- rv = l2_util_setparams(pa, fmt, ap);
+ l2_channel_env(ch, &env);
+ rv = l2_util_setparams(env, pa, fmt, ap);
if (cfg->szTarget == NULL || cfg->szFacility == NULL)
return L2_ERR_USE;
if (!( strcmp(cfg->szTarget, "local") == 0
|