]> mj.ucw.cz Git - libucw.git/commitdiff
fbpool: Converted to size_t.
authorPavel Charvat <pchar@ucw.cz>
Mon, 2 Jun 2014 17:18:04 +0000 (19:18 +0200)
committerPavel Charvat <pchar@ucw.cz>
Mon, 2 Jun 2014 17:18:04 +0000 (19:18 +0200)
ucw/fastbuf.h
ucw/fb-pool.c

index 99a9dd47285f04f5adb0c458370ced1c359a2dff..cc0125b8f06b6b640ea61c7d171cfb071d09a1ab 100644 (file)
@@ -481,7 +481,7 @@ void fbpool_init(struct fbpool *fb);        /** Initialize a new mempool fastbuf. **/
  * Start a new continuous block and prepare for writing (see <<mempool:mp_start()>>).
  * Provide the memory pool you want to use for this block as @mp.
  **/
-void fbpool_start(struct fbpool *fb, struct mempool *mp, uns init_size);
+void fbpool_start(struct fbpool *fb, struct mempool *mp, size_t init_size);
 /**
  * Close the block and return the address of its start (see <<mempool:mp_end()>>).
  * The length can be determined by calling <<mempool:mp_size(mp, ptr)>>.
index e8628dcd9e09bd9c9efd6e4ca09b9fe1b230fc85..7ef0d5577e49e2d105f599caab0b7e12758e20d8 100644 (file)
@@ -29,7 +29,7 @@ fbpool_spout(struct fastbuf *b)
 }
 
 void
-fbpool_start(struct fbpool *b, struct mempool *mp, uns init_size)
+fbpool_start(struct fbpool *b, struct mempool *mp, size_t init_size)
 {
   b->mp = mp;
   b->fb.buffer = b->fb.bstop = b->fb.bptr = mp_start(mp, init_size);