X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fconf-dump.c;h=9d7e31c926b9e7bcdbd735f822adc6e377add00f;hb=7bbac4cd20d6ece66541ee94556052f5ef4bd0dd;hp=a2a92df2b79005e5b28b5bbde8ad35f49b324971;hpb=a4fe009d3366b0a3e119713b0ecc7fc0070efdfa;p=libucw.git diff --git a/ucw/conf-dump.c b/ucw/conf-dump.c index a2a92df2..9d7e31c9 100644 --- a/ucw/conf-dump.c +++ b/ucw/conf-dump.c @@ -2,18 +2,18 @@ * UCW Library -- Configuration files: dumping * * (c) 2001--2006 Robert Spalek - * (c) 2003--2006 Martin Mares + * (c) 2003--2012 Martin Mares * * This software may be freely distributed and used according to the terms * of the GNU Lesser General Public License. */ -#include "ucw/lib.h" -#include "ucw/conf.h" -#include "ucw/getopt.h" -#include "ucw/conf-internal.h" -#include "ucw/clists.h" -#include "ucw/fastbuf.h" +#include +#include +#include +#include +#include +#include static void spaces(struct fastbuf *fb, uns nr) @@ -118,6 +118,7 @@ dump_section(struct fastbuf *fb, struct cf_section *sec, int level, void *ptr) void cf_dump_sections(struct fastbuf *fb) { - dump_section(fb, &cf_sections, 0, NULL); + struct cf_context *cc = cf_get_context(); + dump_section(fb, &cc->sections, 0, NULL); }