]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/fb-null.c
Opt: Added OPT_BREAK
[libucw.git] / ucw / fb-null.c
index 8edc5a4d523e4b96cfc14361f4d791f1de2be4d4..5d1649206991e98108614460ca0045a936c2525c 100644 (file)
@@ -17,7 +17,7 @@ static void fbnull_close(struct fastbuf *b)
   xfree(b);
 }
 
   xfree(b);
 }
 
-struct fastbuf *fbnull_open(uns bufsize)
+struct fastbuf *fbnull_open(uint bufsize)
 {
   struct fastbuf *b = xmalloc(sizeof(*b) + bufsize);
   bzero(b, sizeof(*b));
 {
   struct fastbuf *b = xmalloc(sizeof(*b) + bufsize);
   bzero(b, sizeof(*b));
@@ -45,7 +45,7 @@ static int fbnull_seek(struct fastbuf *b, ucw_off_t pos, int whence)
   return 1;
 }
 
   return 1;
 }
 
-void fbnull_start(struct fastbuf *b, byte *buf, uns bufsize)
+void fbnull_start(struct fastbuf *b, byte *buf, uint bufsize)
 {
   ASSERT(buf && bufsize);
   b->pos = btell(b);
 {
   ASSERT(buf && bufsize);
   b->pos = btell(b);
@@ -66,7 +66,7 @@ bool fbnull_test(struct fastbuf *b)
 int main(void)
 {
   struct fastbuf *b = fbnull_open(7);
 int main(void)
 {
   struct fastbuf *b = fbnull_open(7);
-  for (uns i = 0; i < 100; i++)
+  for (uint i = 0; i < 100; i++)
     {
       if (btell(b) != i * 10)
        ASSERT(0);
     {
       if (btell(b) != i * 10)
        ASSERT(0);