aboutsummaryrefslogtreecommitdiff
path: root/webservd/binder_request.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webservd/binder_request.cc')
-rw-r--r--webservd/binder_request.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/webservd/binder_request.cc b/webservd/binder_request.cc
index 4b7d1ea..96c0a86 100644
--- a/webservd/binder_request.cc
+++ b/webservd/binder_request.cc
@@ -33,7 +33,7 @@ namespace android {
namespace webservd {
namespace {
-Status DupToScopedFd(int fd, android::base::unique_fd* target) {
+Status DupToScopedFd(int fd, ScopedFd* target) {
do {
target->reset(dup(fd));
@@ -51,7 +51,7 @@ Status DupToScopedFd(int fd, android::base::unique_fd* target) {
} // namespace
-Status HttpRequest::GetBody(android::base::unique_fd* body) {
+Status HttpRequest::GetBody(ScopedFd* body) {
return DupToScopedFd(request_->GetBodyDataFileDescriptor(), body);
}
@@ -93,7 +93,7 @@ Status HttpRequest::GetHeaders(vector<string>* headers) {
Status HttpRequest::Respond(int32_t status_code,
const vector<string>& response_headers,
int32_t data_size,
- android::base::unique_fd* response_stream) {
+ ScopedFd* response_stream) {
if (response_headers.size() % 2) {
return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT,
String8("Header array contained unmatched key."));