aboutsummaryrefslogtreecommitdiff
path: root/butl/curl.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-04-24 13:51:56 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-04-24 14:49:11 +0300
commitb8526f8f0cb24c457da8c88877e516943e3e1902 (patch)
treef63a266ab7710a21c3d1cbca132194b1c7ad5b5f /butl/curl.cxx
parenteb4810893eb4c8379c3455f1e8a75ccd3b911aa6 (diff)
Make fdnull() to return auto_fd
Diffstat (limited to 'butl/curl.cxx')
-rw-r--r--butl/curl.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/butl/curl.cxx b/butl/curl.cxx
index 4951b52..12a1d54 100644
--- a/butl/curl.cxx
+++ b/butl/curl.cxx
@@ -25,7 +25,7 @@ namespace butl
case ftp_get:
case http_get:
{
- d.pipe.in.reset (fdnull ()); // /dev/null
+ d.pipe.in = fdnull (); // /dev/null
return d.pipe.in.get ();
}
}
@@ -60,7 +60,7 @@ namespace butl
out.open (move (d.pipe.out));
}
else
- d.pipe.in.reset (fdnull ()); // /dev/null
+ d.pipe.in = fdnull (); // /dev/null
return d.pipe.in.get ();
}
@@ -85,7 +85,7 @@ namespace butl
case ftp_put:
case http_post: // May or may not produce output.
{
- d.pipe.out.reset (fdnull ());
+ d.pipe.out = fdnull ();
return d.pipe.out.get (); // /dev/null
}
}
@@ -113,7 +113,7 @@ namespace butl
{
d.options.push_back ("-o");
d.options.push_back (f.string ().c_str ());
- d.pipe.out.reset (fdnull ()); // /dev/null
+ d.pipe.out = fdnull (); // /dev/null
}
return d.pipe.out.get ();