X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fmempool-fmt.c;h=1b98a2d39df9d5ffabac8f6b17b983fc9f585271;hb=ae7dfec55384883a72867d4877b5283a3c1c8aa1;hp=cba7f8260eb9a097c7e68c47c427c0d977866def;hpb=6912c77a66798de162fe31f79581cd7b5c97f12c;p=libucw.git diff --git a/ucw/mempool-fmt.c b/ucw/mempool-fmt.c index cba7f826..1b98a2d3 100644 --- a/ucw/mempool-fmt.c +++ b/ucw/mempool-fmt.c @@ -16,7 +16,7 @@ #include static char * -mp_vprintf_at(struct mempool *mp, uint ofs, const char *fmt, va_list args) +mp_vprintf_at(struct mempool *mp, size_t ofs, const char *fmt, va_list args) { char *ret = mp_grow(mp, ofs + 1) + ofs; va_list args2; @@ -67,7 +67,7 @@ mp_printf(struct mempool *p, const char *fmt, ...) char * mp_append_vprintf(struct mempool *mp, char *ptr, const char *fmt, va_list args) { - uint ofs = mp_open(mp, ptr); + size_t ofs = mp_open(mp, ptr); ASSERT(ofs && !ptr[ofs - 1]); return mp_vprintf_at(mp, ofs - 1, fmt, args); }