OSSP CVS Repository

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

ossp-pkg/l2/l2_ch_file.c 1.18 -> 1.19

--- l2_ch_file.c 2001/11/07 11:37:18     1.18
+++ l2_ch_file.c 2001/11/07 13:05:20     1.19
@@ -38,7 +38,7 @@
     int   fd;
     char *path;
     int   append;
-    long  perm;
+    int   perm;
 } l2_ch_file_t;
 
 /* create channel */
@@ -68,13 +68,15 @@
     l2_ch_file_t *cfg = (l2_ch_file_t *)ctx->vp;
     l2_param_t pa[4]; 
     l2_result_t rv;
+    l2_env_t *env;
 
     /* feed and call generic parameter parsing engine */
-    L2_PARAM_SET(pa[0], path,   CHARPTR, &cfg->path);
-    L2_PARAM_SET(pa[1], append, INT,     &cfg->append);
-    L2_PARAM_SET(pa[2], perm,   LONG,    &cfg->perm);
+    L2_PARAM_SET(pa[0], path,   STR, &cfg->path);
+    L2_PARAM_SET(pa[1], append, INT, &cfg->append);
+    L2_PARAM_SET(pa[2], perm,   INT, &cfg->perm);
     L2_PARAM_END(pa[3]);
-    rv = l2_util_setparams(pa, fmt, ap);
+    l2_channel_env(ch, &env);
+    rv = l2_util_setparams(env, pa, fmt, ap);
 
     return rv;
 }

CVSTrac 2.0.1