]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/fb-grow.c
Minor fixes to strtonum.
[libucw.git] / ucw / fb-grow.c
index 4d98d3153a69353bf0440be1c334a04477740f77..e1da0107f4bfadc07118b1620603476819d92037 100644 (file)
@@ -47,10 +47,10 @@ fbgrow_spout(struct fastbuf *b)
 }
 
 static int
-fbgrow_seek(struct fastbuf *b, sh_off_t pos, int whence)
+fbgrow_seek(struct fastbuf *b, ucw_off_t pos, int whence)
 {
   ASSERT(FB_GBUF(b)->last_written);    /* Seeks allowed only in read mode */
-  sh_off_t len = FB_GBUF(b)->last_written - b->buffer;
+  ucw_off_t len = FB_GBUF(b)->last_written - b->buffer;
   if (whence == SEEK_END)
     pos += len;
   ASSERT(pos >= 0 && pos <= len);