aboutsummaryrefslogtreecommitdiffstats
path: root/common/iobuf.c
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2015-08-13 14:09:15 +0000
committerNeal H. Walfield <[email protected]>2015-08-20 12:16:22 +0000
commit8402815d8e0e04a44362968f88b3d484d2395402 (patch)
treef9a5fd9e9fc6cba353219f9be8ddb530c438f4e6 /common/iobuf.c
parentcommon/iobuf.c: Rename iobuf_flush and make it a static function. (diff)
downloadgnupg-8402815d8e0e04a44362968f88b3d484d2395402.tar.gz
gnupg-8402815d8e0e04a44362968f88b3d484d2395402.zip
common/iobuf.h: Remove iobuf_open_fd_or_name.
* common/iobuf.h (iobuf_open_fd_or_name): Remove prototype. Replace use with either iobuf_open or iobuf_fdopen_nc, as appropriate. * common/iobuf.c (iobuf_open): Remove function. -- Signed-off-by: Neal H. Walfield <[email protected]>.
Diffstat (limited to '')
-rw-r--r--common/iobuf.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/common/iobuf.c b/common/iobuf.c
index 66f669ba8..9d3ce9897 100644
--- a/common/iobuf.c
+++ b/common/iobuf.c
@@ -1301,23 +1301,6 @@ iobuf_is_pipe_filename (const char *fname)
}
-/* Either open the file specified by the file descriptor FD or - if FD
- is -1, the file with name FNAME. As of now MODE is assumed to be
- "rb" if FNAME is used. In contrast to iobuf_fdopen the file
- descriptor FD will not be closed during an iobuf_close. */
-iobuf_t
-iobuf_open_fd_or_name (gnupg_fd_t fd, const char *fname, const char *mode)
-{
- iobuf_t a;
-
- if (fd == GNUPG_INVALID_FD)
- a = iobuf_open (fname);
- else
- a = iobuf_fdopen_nc (FD2INT(fd), mode);
- return a;
-}
-
-
/****************
* Create a head iobuf for reading from a file
* returns: NULL if an error occures and sets errno