X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fbbuf.c;h=36ece2a066794629be17c20a87b50730fa8108ee;hb=bc2bbfcbe76e78db9cde27455ddbcfe1ddcc61d6;hp=61c2a272d7667fee8e07251fde0dff7444e85e2e;hpb=031256ad2e123eec58521f8e3eb9496c197641d2;p=libucw.git diff --git a/ucw/bbuf.c b/ucw/bbuf.c index 61c2a272..36ece2a0 100644 --- a/ucw/bbuf.c +++ b/ucw/bbuf.c @@ -7,13 +7,13 @@ * of the GNU Lesser General Public License. */ -#include "ucw/lib.h" -#include "ucw/bbuf.h" +#include +#include #include char * -bb_vprintf_at(bb_t *bb, uns ofs, const char *fmt, va_list args) +bb_vprintf_at(bb_t *bb, size_t ofs, const char *fmt, va_list args) { bb_grow(bb, ofs + 1); va_list args2; @@ -32,7 +32,7 @@ bb_vprintf_at(bb_t *bb, uns ofs, const char *fmt, va_list args) } while (cnt < 0); } - else if ((uns)cnt >= bb->len - ofs) + else if ((uint)cnt >= bb->len - ofs) { bb_do_grow(bb, ofs + cnt + 1); va_copy(args2, args); @@ -44,7 +44,7 @@ bb_vprintf_at(bb_t *bb, uns ofs, const char *fmt, va_list args) } char * -bb_printf_at(bb_t *bb, uns ofs, const char *fmt, ...) +bb_printf_at(bb_t *bb, size_t ofs, const char *fmt, ...) { va_list args; va_start(args, fmt);