OSSP CVS Repository

ossp - Difference in ossp-pkg/cfg/cfg_test.c versions 1.15 and 1.16
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/cfg/cfg_test.c 1.15 -> 1.16

--- cfg_test.c   2004/11/20 11:48:39     1.15
+++ cfg_test.c   2004/11/20 12:54:07     1.16
@@ -44,6 +44,7 @@
     cfg_rc_t rc;
     char *im_ptr;
     size_t im_size;
+    size_t im_used;
     char *ex_ptr;
     char *error;
     cfg_t *cfg;
@@ -57,7 +58,7 @@
     }
 
     /* read configuration file into memory */
-    if ((rc = cfg_util_readfile(argv[1], &im_ptr, &im_size)) != CFG_OK) {
+    if ((rc = cfg_util_readfile(argv[1], &im_ptr, &im_size, &im_used)) != CFG_OK) {
         fprintf(stderr, "ERROR: reading file \"%s\"\n", argv[1]);
         exit(1);
     }
@@ -71,7 +72,7 @@
     }
 
     /* parse configuration */
-    if ((rc = cfg_import(cfg, NULL, CFG_FMT_CFG, im_ptr, im_size)) != CFG_OK) {
+    if ((rc = cfg_import(cfg, NULL, CFG_FMT_CFG, im_ptr, im_used)) != CFG_OK) {
         cfg_error(cfg, rc, &error);
         fprintf(stderr, "ERROR: cfg_import: %s\n", error);
         free(im_ptr);

CVSTrac 2.0.1