summaryrefslogtreecommitdiff
path: root/adb/adb_io.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'adb/adb_io.cpp')
-rw-r--r--adb/adb_io.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/adb/adb_io.cpp b/adb/adb_io.cpp
index 91b0d1f62..f5cdcb558 100644
--- a/adb/adb_io.cpp
+++ b/adb/adb_io.cpp
@@ -34,7 +34,7 @@
#include "adb_utils.h"
#include "sysdeps.h"
-bool SendProtocolString(int fd, const std::string& s) {
+bool SendProtocolString(int fd, std::string_view s) {
unsigned int length = s.size();
if (length > MAX_PAYLOAD - 4) {
errno = EMSGSIZE;
@@ -69,7 +69,7 @@ bool SendOkay(int fd) {
return WriteFdExactly(fd, "OKAY", 4);
}
-bool SendFail(int fd, const std::string& reason) {
+bool SendFail(int fd, std::string_view reason) {
return WriteFdExactly(fd, "FAIL", 4) && SendProtocolString(fd, reason);
}