]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/bbuf.c
xtypes: added first shot on unit parser
[libucw.git] / ucw / bbuf.c
index 61c2a272d7667fee8e07251fde0dff7444e85e2e..36ece2a066794629be17c20a87b50730fa8108ee 100644 (file)
@@ -7,13 +7,13 @@
  *     of the GNU Lesser General Public License.
  */
 
-#include "ucw/lib.h"
-#include "ucw/bbuf.h"
+#include <ucw/lib.h>
+#include <ucw/bbuf.h>
 
 #include <stdio.h>
 
 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);