X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fconf-alloc.c;h=9f02fd568c92213736268c7d88908806054f4609;hb=35257848f97710b8107e20f690404cfaf0838f74;hp=8553e7f90ad16416e4faa7a9462e772df210920c;hpb=5d4c3f3f01730c49b82f9212749ce28f6f808658;p=libucw.git diff --git a/lib/conf-alloc.c b/lib/conf-alloc.c index 8553e7f9..9f02fd56 100644 --- a/lib/conf-alloc.c +++ b/lib/conf-alloc.c @@ -26,18 +26,18 @@ cf_malloc_zero(uns size) return mp_alloc_zero(cf_pool, size); } -byte * -cf_strdup(byte *s) +char * +cf_strdup(const char *s) { return mp_strdup(cf_pool, s); } -byte * -cf_printf(char *fmt, ...) +char * +cf_printf(const char *fmt, ...) { va_list args; va_start(args, fmt); - byte *res = mp_vprintf(cf_pool, fmt, args); + char *res = mp_vprintf(cf_pool, fmt, args); va_end(args); return res; }