summaryrefslogtreecommitdiff
path: root/src/libstddjb/iobufferu_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/iobufferu_init.c')
-rw-r--r--src/libstddjb/iobufferu_init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstddjb/iobufferu_init.c b/src/libstddjb/iobufferu_init.c
index d2b86c8..490ac59 100644
--- a/src/libstddjb/iobufferu_init.c
+++ b/src/libstddjb/iobufferu_init.c
@@ -1,6 +1,7 @@
/* ISC license. */
#include <skalibs/alloc.h>
+#include <skalibs/allreadwrite.h>
#include <skalibs/buffer.h>
#include <skalibs/iobuffer.h>
@@ -9,7 +10,7 @@ int iobufferu_init (iobufferu *b, int fdin, int fdout)
register char *x = alloc(IOBUFFERU_SIZE) ;
if (!x) return 0 ;
b->buf = x ;
- buffer_init(&b->b[0], &buffer_read, fdin, x, IOBUFFERU_SIZE) ;
- buffer_init(&b->b[1], &buffer_write, fdout, x, IOBUFFERU_SIZE) ;
+ buffer_init(&b->b[0], &fd_readsv, fdin, x, IOBUFFERU_SIZE) ;
+ buffer_init(&b->b[1], &fd_writesv, fdout, x, IOBUFFERU_SIZE) ;
return 1 ;
}