X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Ffb-temp.c;h=b8189ab933497315eb71aef37201fcb4d3c30b5f;hb=b4d79987a979bcbf749294c706fdc8c4ae8f9304;hp=f7b14483e172bca0b172e5c1b5373093a50e45e6;hpb=49edfa12025a3552d1cfcd2a936201c1da95148a;p=libucw.git diff --git a/lib/fb-temp.c b/lib/fb-temp.c index f7b14483..b8189ab9 100644 --- a/lib/fb-temp.c +++ b/lib/fb-temp.c @@ -1,5 +1,5 @@ /* - * Sherlock Library -- Temporary Fastbufs + * UCW Library -- Temporary Fastbufs * * (c) 2002--2004 Martin Mares * @@ -16,15 +16,16 @@ static byte *temp_template = "/tmp/temp%d.%d"; -static struct cfitem temp_config[] = { - { "Tempfiles", CT_SECTION, NULL }, - { "Template", CT_STRING, &temp_template }, - { NULL, CT_STOP, NULL } +static struct cf_section temp_config = { + CF_ITEMS { + CF_STRING("Template", &temp_template), + CF_END + } }; static void CONSTRUCTOR temp_init_config(void) { - cf_register(temp_config); + cf_declare_section("Tempfiles", &temp_config, 0); } struct fastbuf *