summaryrefslogtreecommitdiff
path: root/common/subprocess.cc
diff options
context:
space:
mode:
Diffstat (limited to 'common/subprocess.cc')
-rw-r--r--common/subprocess.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/subprocess.cc b/common/subprocess.cc
index 24ad2d9b..45dff923 100644
--- a/common/subprocess.cc
+++ b/common/subprocess.cc
@@ -29,6 +29,7 @@
#include <base/bind.h>
#include <base/logging.h>
#include <base/posix/eintr_wrapper.h>
+#include <base/stl_util.h>
#include <base/strings/string_util.h>
#include <base/strings/stringprintf.h>
#include <brillo/process.h>
@@ -122,7 +123,7 @@ void Subprocess::OnStdoutReady(SubprocessRecord* record) {
bytes_read = 0;
bool eof;
bool ok = utils::ReadAll(
- record->stdout_fd, buf, arraysize(buf), &bytes_read, &eof);
+ record->stdout_fd, buf, base::size(buf), &bytes_read, &eof);
record->stdout.append(buf, bytes_read);
if (!ok || eof) {
// There was either an error or an EOF condition, so we are done watching