X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fdoc%2Fmempool.txt;h=5aa33ddd2e981f4c8d219ceb1841ecfe828c2639;hb=1481eca416a467e9952dbc5e4852afe66eaf1256;hp=62e06d6701e9441097a1f1e2d49d345146200928;hpb=c8ffd6e3b4fc8fd6437c04282c357b2dc290bbbd;p=libucw.git diff --git a/ucw/doc/mempool.txt b/ucw/doc/mempool.txt index 62e06d67..5aa33ddd 100644 --- a/ucw/doc/mempool.txt +++ b/ucw/doc/mempool.txt @@ -112,7 +112,7 @@ This example uses libucw's own IO system, <>. void *stdin_data(struct mempool *pool) { struct fastbuf *fb = bopen_fd(0, NULL); // Read from stdin - uint amount; + size_t amount; char *ptr = mp_start(pool, 1024); while(amount = bread(fb, ptr, 1024)) { // Read a block ptr += amount; // Move after it