summaryrefslogtreecommitdiffstats
path: root/util/iobuf.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1999-05-17 22:03:24 +0200
committerWerner Koch <wk@gnupg.org>1999-05-17 22:03:24 +0200
commit3983f30bd2f671d4f7c5bbe39a1d6a7b191f2af5 (patch)
treeef2ea1a332a2e954d1c5c86b66570da8fa6935b6 /util/iobuf.c
parentSee ChangeLog: Sat May 8 19:28:33 CEST 1999 Werner Koch (diff)
downloadgnupg2-3983f30bd2f671d4f7c5bbe39a1d6a7b191f2af5.tar.xz
gnupg2-3983f30bd2f671d4f7c5bbe39a1d6a7b191f2af5.zip
See ChangeLog: Mon May 17 21:54:43 CEST 1999 Werner Koch
Diffstat (limited to 'util/iobuf.c')
-rw-r--r--util/iobuf.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/util/iobuf.c b/util/iobuf.c
index 5eae82d10..bd7093a9e 100644
--- a/util/iobuf.c
+++ b/util/iobuf.c
@@ -424,6 +424,12 @@ print_chain( IOBUF a )
}
}
+int
+iobuf_print_chain( IOBUF a )
+{
+ print_chain(a);
+}
+
/****************
* Allocate a new io buffer, with no function assigned.
* Use is the desired usage: 1 for input, 2 for output, 3 for temp buffer
@@ -787,7 +793,7 @@ iobuf_push_filter2( IOBUF a,
/****************
* Remove an i/o filter.
*/
-static int
+int
pop_filter( IOBUF a, int (*f)(void *opaque, int control,
IOBUF chain, byte *buf, size_t *len), void *ov )
{
@@ -856,7 +862,6 @@ pop_filter( IOBUF a, int (*f)(void *opaque, int control,
}
-
/****************
* read underflow: read more bytes into the buffer and return
* the first byte or -1 on EOF.
@@ -949,8 +954,6 @@ underflow(IOBUF a)
memcpy(a,b, sizeof *a);
m_free(b);
print_chain(a);
-
-
}
}
else if( rc )