X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fconf-alloc.c;h=9f02fd568c92213736268c7d88908806054f4609;hb=c5fbc7b75705d1f7a322ad73e6055284a3b94e73;hp=8553e7f90ad16416e4faa7a9462e772df210920c;hpb=47a0795e8a28e8ad6ff55cda89e300267d9e590c;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; }