OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_ch_socket.c versions 1.33 and 1.34
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/l2_ch_socket.c 1.33 -> 1.34

--- l2_ch_socket.c       2001/11/07 11:37:18     1.33
+++ l2_ch_socket.c       2001/11/07 13:05:20     1.34
@@ -77,14 +77,16 @@
     l2_ch_socket_t *cfg = (l2_ch_socket_t *)ctx->vp;
     l2_param_t pa[5];
     l2_result_t rv;
+    l2_env_t *env;
 
     /* feed and call generic parameter parsing engine */
-    L2_PARAM_SET(pa[0], proto,     STRING,  &cfg->szProto);
-    L2_PARAM_SET(pa[1], host,      STRING,  &cfg->szHost);
-    L2_PARAM_SET(pa[2], port,      STRING,  &cfg->szPort);
-    L2_PARAM_SET(pa[3], timeout,   INT,     &cfg->nTimeout);
+    L2_PARAM_SET(pa[0], proto,   STR, &cfg->szProto);
+    L2_PARAM_SET(pa[1], host,    STR, &cfg->szHost);
+    L2_PARAM_SET(pa[2], port,    STR, &cfg->szPort);
+    L2_PARAM_SET(pa[3], timeout, INT, &cfg->nTimeout);
     L2_PARAM_END(pa[4]);
-    rv = l2_util_setparams(pa, fmt, ap);
+    l2_channel_env(ch, &env);
+    rv = l2_util_setparams(env, pa, fmt, ap);
 
     /* sanity check configuration parameters */
     if (   cfg->szProto != NULL

CVSTrac 2.0.1