OSSP CVS Repository

ossp - Difference in ossp-pkg/lmtp2nntp/lmtp2nntp_config.c versions 1.6 and 1.7
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/lmtp2nntp/lmtp2nntp_config.c 1.6 -> 1.7

--- lmtp2nntp_config.c   2002/01/16 09:46:52     1.6
+++ lmtp2nntp_config.c   2002/01/16 14:19:07     1.7
@@ -106,40 +106,40 @@
 {
     switch (type) {
         case VAL_TYPE_VAL:
-            fprintf(stderr, "DEBUG: <%10s> VAL_TYPE_VAL,    desc=<%20s>, data@%.8lx INTERNAL\n",
-                    (char *)ctx,       desc, (long)data);
+            fprintf(stderr, "DEBUG: <%10s>, name=<%10s>, VAL_TYPE_VAL,    desc=<%20s>, data@%.8lx INTERNAL\n",
+                    (char *)ctx, name,      desc, (long)data);
             break;
         case VAL_TYPE_PTR:
-            fprintf(stderr, "DEBUG: <%10s> VAL_TYPE_PTR,    desc=<%20s>, data@%.8lx=%.8lx\n",
-                    (char *)ctx,       desc, (long)data, *(long *)data);
+            fprintf(stderr, "DEBUG: <%10s>, name=<%10s>, VAL_TYPE_PTR,    desc=<%20s>, data@%.8lx=%.8lx\n",
+                    (char *)ctx, name,      desc, (long)data, *(long *)data);
             break;
         case VAL_TYPE_CHAR:                                                                              
-            fprintf(stderr, "DEBUG: <%10s> VAL_TYPE_CHAR,   desc=<%20s>, data@%.8lx='%c'\n",
-                    (char *)ctx,       desc, (long)data, *(char *)data);
+            fprintf(stderr, "DEBUG: <%10s>, name=<%10s>, VAL_TYPE_CHAR,   desc=<%20s>, data@%.8lx='%c'\n",
+                    (char *)ctx, name,      desc, (long)data, *(char *)data);
             break;
         case VAL_TYPE_SHORT:                                                                             
-            fprintf(stderr, "DEBUG: <%10s> VAL_TYPE_SHORT,  desc=<%20s>, data@%.8lx=%8d\n",
-                    (char *)ctx,       desc, (long)data, *(short *)data);
+            fprintf(stderr, "DEBUG: <%10s>, name=<%10s>, VAL_TYPE_SHORT,  desc=<%20s>, data@%.8lx=%8d\n",
+                    (char *)ctx, name,      desc, (long)data, *(short *)data);
             break;
         case VAL_TYPE_INT:                                                                               
-            fprintf(stderr, "DEBUG: <%10s> VAL_TYPE_INT,    desc=<%20s>, data@%.8lx=%8d\n",
-                    (char *)ctx,       desc, (long)data, *(int *)data);
+            fprintf(stderr, "DEBUG: <%10s>, name=<%10s>, VAL_TYPE_INT,    desc=<%20s>, data@%.8lx=%8d\n",
+                    (char *)ctx, name,      desc, (long)data, *(int *)data);
             break;
         case VAL_TYPE_LONG:                                                                              
-            fprintf(stderr, "DEBUG: <%10s> VAL_TYPE_LONG,   desc=<%20s>, data@%.8lx=%8d\n",
-                    (char *)ctx,       desc, (long)data, *(long *)data);
+            fprintf(stderr, "DEBUG: <%10s>, name=<%10s>, VAL_TYPE_LONG,   desc=<%20s>, data@%.8lx=%8ld\n",
+                    (char *)ctx, name,      desc, (long)data, *(long *)data);
             break;
         case VAL_TYPE_FLOAT:                                                                             
-            fprintf(stderr, "DEBUG: <%10s> VAL_TYPE_FLOAT,  desc=<%20s>, data@%.8lx=%8f\n",
-                    (char *)ctx,       desc, (long)data, *(float *)data);
+            fprintf(stderr, "DEBUG: <%10s>, name=<%10s>, VAL_TYPE_FLOAT,  desc=<%20s>, data@%.8lx=%8f\n",
+                    (char *)ctx, name,      desc, (long)data, *(float *)data);
             break;
         case VAL_TYPE_DOUBLE:                                                                            
-            fprintf(stderr, "DEBUG: <%10s> VAL_TYPE_DOUBLE, desc=<%20s>, data@%.8lx=%8f\n",
-                    (char *)ctx,       desc, (long)data, *(double *)data);
+            fprintf(stderr, "DEBUG: <%10s>, name=<%10s>, VAL_TYPE_DOUBLE, desc=<%20s>, data@%.8lx=%8f\n",
+                    (char *)ctx, name,      desc, (long)data, *(double *)data);
             break;
         default: 
-            fprintf(stderr, "DEBUG: <%10s> type = %.8lx,    desc=<%20s>, data@%.8lx\n",
-                    (char *)ctx, type, desc, (long)data);
+            fprintf(stderr, "DEBUG: <%10s>, name=<%10s>, type = %.8lx,    desc=<%20s>, data@%.8lx\n",
+                    (char *)ctx, name, (long)type, desc, (long)data);
     }
 
     return VAL_OK;
@@ -266,8 +266,15 @@
         if ((rc = val_set(v, "bar.double", 3.14159265358979)) != VAL_OK)
             die("val_set  for bar.double using inline data");
 
-        val_apply(v,  dumper, "v" );
-        val_apply(v2, dumper, "v2");
+        // OK val_apply(v,  "", 9, dumper, "v" );
+        // OK val_apply(v2, "", 9, dumper, "v2");
+        // OK val_apply(v,  "", 0, dumper, "v" );
+        // OK val_apply(v,  "bar", 1, dumper, "v" );
+        // OK val_apply(v2,  "", 0, dumper, "v" );
+        // OK val_apply(v,  "", 1, dumper, "v" );
+        // OK val_apply(v,  "foo", 0, dumper, "v" );
+        // OK val_apply(v2,  "char", 2, dumper, "v" );
+        // OK val_apply(v,  "bar.char", 2, dumper, "v" );
 
         if ((rc = val_destroy(v2)) != VAL_OK)
             die("val_destroy 2");

CVSTrac 2.0.1