summaryrefslogtreecommitdiff
path: root/src/libstddjb
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-20 01:15:21 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-20 01:15:21 +0000
commit2436785702b47996e9f0e281df0d6027660ec914 (patch)
tree8b84e6596145521dcbee951993c4eb6a2e86ec00 /src/libstddjb
parent55e4b1ebca5d6e7eb0382b3be2154d376f36909e (diff)
downloadskalibs-2436785702b47996e9f0e281df0d6027660ec914.tar.xz
Cosmetic fixes in iobuffer (was looking for a bug, but it wasn't there)
Diffstat (limited to 'src/libstddjb')
-rw-r--r--src/libstddjb/iobufferk_flush.c6
-rw-r--r--src/libstddjb/iobufferu_flush.c2
-rw-r--r--src/libstddjb/iobufferu_init.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/libstddjb/iobufferk_flush.c b/src/libstddjb/iobufferk_flush.c
index fb51e32..674ffec 100644
--- a/src/libstddjb/iobufferk_flush.c
+++ b/src/libstddjb/iobufferk_flush.c
@@ -9,7 +9,7 @@
#include <errno.h>
#include <skalibs/iobuffer.h>
-static int iobufferk_flush_0 (iobufferk_ref k)
+static int iobufferk_flush_0 (iobufferk *k)
{
while (k->n)
{
@@ -21,13 +21,13 @@ static int iobufferk_flush_0 (iobufferk_ref k)
return 1 ;
}
-static int fakeflush (iobufferk_ref k)
+static int fakeflush (iobufferk *k)
{
k->n = 0 ;
return 1 ;
}
-static int iobufferk_flush_3 (iobufferk_ref k)
+static int iobufferk_flush_3 (iobufferk *k)
{
while (k->n)
{
diff --git a/src/libstddjb/iobufferu_flush.c b/src/libstddjb/iobufferu_flush.c
index 734fab1..8830599 100644
--- a/src/libstddjb/iobufferu_flush.c
+++ b/src/libstddjb/iobufferu_flush.c
@@ -3,7 +3,7 @@
#include <skalibs/buffer.h>
#include <skalibs/iobuffer.h>
-int iobufferu_flush (iobufferu_ref b)
+int iobufferu_flush (iobufferu *b)
{
register int r = buffer_flush(&b->b[1]) ;
b->b[0].c.p = b->b[1].c.p ;
diff --git a/src/libstddjb/iobufferu_init.c b/src/libstddjb/iobufferu_init.c
index e9ea5c8..d2b86c8 100644
--- a/src/libstddjb/iobufferu_init.c
+++ b/src/libstddjb/iobufferu_init.c
@@ -4,7 +4,7 @@
#include <skalibs/buffer.h>
#include <skalibs/iobuffer.h>
-int iobufferu_init (iobufferu_ref b, int fdin, int fdout)
+int iobufferu_init (iobufferu *b, int fdin, int fdout)
{
register char *x = alloc(IOBUFFERU_SIZE) ;
if (!x) return 0 ;