]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/fb-socket.c
Config: Added support for terabyte values, for example "123T".
[libucw.git] / ucw / fb-socket.c
index 0a78273f3ec124f0d1d885d8ede0d46ec33e61e5..19f27bd52130b480a40f4b0418794958d0e14ae4 100644 (file)
@@ -2,6 +2,7 @@
  *     UCW Library -- Fast Buffered I/O on Sockets with Timeouts
  *
  *     (c) 2008 Martin Mares <mj@ucw.cz>
+ *     (c) 2017 Pavel Charvat <pchar@ucw.cz>
  *
  *     This software may be freely distributed and used according to the terms
  *     of the GNU Lesser General Public License.
@@ -73,6 +74,7 @@ fbs_spout(struct fastbuf *f)
 
   int l = f->bptr - f->bstop;
   f->bptr = f->bstop;
+  f->pos += l;
   char *buf = f->bstop;
 
   while (l)
@@ -133,7 +135,7 @@ fbsock_create(struct fbsock_params *p)
 
 #include <stdlib.h>
 
-static void test_err(void *x UNUSED, uns flags, char *msg UNUSED)
+static void test_err(void *x UNUSED, uint flags, char *msg UNUSED)
 {
   if (flags & FBSOCK_READ)
     printf("READ");