From 282dce564a6cd33469f6b82ce94582bc4d9121be Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 12 Feb 2020 21:42:20 +0300 Subject: Rename fdnull() to fdopen_null() --- libbutl/openssl.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libbutl/openssl.cxx') diff --git a/libbutl/openssl.cxx b/libbutl/openssl.cxx index ecbebcd..8741b35 100644 --- a/libbutl/openssl.cxx +++ b/libbutl/openssl.cxx @@ -38,7 +38,7 @@ namespace butl process::pipe openssl:: map_in (nullfd_t, io_data& d) { - d.pipe.in = fdnull (); // /dev/null + d.pipe.in = fdopen_null (); // /dev/null return pipe (d.pipe); } @@ -59,7 +59,7 @@ namespace butl { d.options.push_back ("-in"); d.options.push_back (f.string ().c_str ()); - d.pipe.in = fdnull (); // /dev/null + d.pipe.in = fdopen_null (); // /dev/null r = pipe (d.pipe); } @@ -77,7 +77,7 @@ namespace butl ? fdopen_mode::binary : fdopen_mode::none); pipe r (d.pipe); - + out.open (move (d.pipe.out)); return r; } @@ -85,7 +85,7 @@ namespace butl process::pipe openssl:: map_out (nullfd_t, io_data& d) { - d.pipe.out = fdnull (); + d.pipe.out = fdopen_null (); return pipe (d.pipe); // /dev/null } @@ -106,7 +106,7 @@ namespace butl { d.options.push_back ("-out"); d.options.push_back (f.string ().c_str ()); - d.pipe.out = fdnull (); // /dev/null + d.pipe.out = fdopen_null (); // /dev/null r = pipe (d.pipe); } @@ -124,7 +124,7 @@ namespace butl ? fdopen_mode::binary : fdopen_mode::none); pipe r (d.pipe); - + in.open (move (d.pipe.in), fdstream_mode::skip); return r; } -- cgit v1.1