poldek: poldek/tests/test_config.c - up
mis
mis at pld-linux.org
Wed Jun 27 02:51:54 CEST 2007
Author: mis Date: Wed Jun 27 00:51:54 2007 GMT
Module: poldek Tag: HEAD
---- Log message:
- up
---- Files affected:
poldek/poldek/tests:
test_config.c (1.2 -> 1.3)
---- Diffs:
================================================================
Index: poldek/poldek/tests/test_config.c
diff -u poldek/poldek/tests/test_config.c:1.2 poldek/poldek/tests/test_config.c:1.3
--- poldek/poldek/tests/test_config.c:1.2 Sat Nov 5 18:47:55 2005
+++ poldek/poldek/tests/test_config.c Wed Jun 27 02:51:49 2007
@@ -22,7 +22,7 @@
cnf = poldek_conf_load("poldek_test_conf.conf", 0);
fail_if(cnf == NULL, "load config failed");
- s = poldek_conf_get_section_ht(cnf, "global");
+ s = poldek_conf_get_section(cnf, "global");
fail_if(s == NULL, "no global section?");
i = 0;
@@ -30,7 +30,7 @@
const char *sname = poldek_conf_sections[i].name;
tags = poldek_conf_sections[i++].tags;
- s = poldek_conf_get_section_ht(cnf, sname);
+ s = poldek_conf_get_section(cnf, sname);
fail_if(s == NULL, "no %s section?", s);
j = 0;
@@ -135,7 +135,7 @@
f = fopen(name, "w");
fail_if(f == NULL, "file open failed");
for (i=0; i<n_array_size(lines); i++)
- fprintf(f, "%s\n", n_array_nth(lines, i));
+ fprintf(f, "%s\n", (char*) n_array_nth(lines, i));
fclose(f);
}
@@ -147,7 +147,6 @@
tn_hash *cnf, *s;
tn_array *lines, *list;
int i, maxno = 0;
- FILE *f;
lines = n_array_new(16, 0, 0);
@@ -169,7 +168,7 @@
cnf = poldek_conf_load("poldek_test_conf.tmp", 0);
fail_if(cnf == NULL, "load config failed");
- s = poldek_conf_get_section_ht(cnf, "global");
+ s = poldek_conf_get_section(cnf, "global");
fail_if(s == NULL, "no global section?");
i = 0;
@@ -204,7 +203,7 @@
cnf = poldek_conf_addlines(NULL, "source", lines);
fail_if(cnf == NULL, "load config failed");
- s = poldek_conf_get_section_ht(cnf, "source");
+ s = poldek_conf_get_section(cnf, "source");
fail_if(s == NULL, "no source section?");
i = 0;
================================================================
---- CVS-web:
http://cvs.pld-linux.org/poldek/poldek/tests/test_config.c?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list