common/iobuf.c: Combine iobuf_open, iobuf_create and iobuf_openrw.
authorNeal H. Walfield <neal@g10code.com>
Fri, 14 Aug 2015 09:18:18 +0000 (11:18 +0200)
committerNeal H. Walfield <neal@g10code.com>
Thu, 20 Aug 2015 12:16:23 +0000 (14:16 +0200)
commit15ae99f887f4694de8468625d455d487d283f719
treee86bbd9228f44012e9a685524357eed4bcdc7fb5
parent8402815d8e0e04a44362968f88b3d484d2395402
common/iobuf.c: Combine iobuf_open, iobuf_create and iobuf_openrw.

* common/iobuf.c (do_open): New function, which is a generalization of
iobuf_open, iobuf_Create, iobuf_openrw.
(iobuf_open): Call do_open.
(iobuf_create): Likewise.
(iobuf_openrw): Likewise.
--
Signed-off-by: Neal H. Walfield <neal@g10code.com>.
common/iobuf.c