This is an automated email from the ASF dual-hosted git repository. bbannier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mesos.git
commit ff363db6e6da8a0e9b26a82a48aba08cf4451e2e Author: Benjamin Bannier <[email protected]> AuthorDate: Mon Jan 13 10:27:50 2020 +0100 Removed redundant calls to `c_str` flagged by mesos-tidy. These calls were flagged by the upstream `readability-redundant-string-cstr` check. Review: https://reviews.apache.org/r/71986 --- src/linux/systemd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/linux/systemd.cpp b/src/linux/systemd.cpp index d9cb566..9897473 100644 --- a/src/linux/systemd.cpp +++ b/src/linux/systemd.cpp @@ -374,7 +374,7 @@ Try<std::vector<int>> listenFds() return result; } - Try<pid_t> listenPid = flags::parse<pid_t>(listenPidEnv->c_str()); + Try<pid_t> listenPid = flags::parse<pid_t>(listenPidEnv.get()); if (listenPid.isError()) { return Error("Could not parse $LISTEN_PID=\"" + listenPidEnv.get() + "\" as integer"); @@ -392,7 +392,7 @@ Try<std::vector<int>> listenFds() return result; } - Try<int> listenFds = flags::parse<int>(listenFdsEnv->c_str()); + Try<int> listenFds = flags::parse<int>(listenFdsEnv.get()); if (listenFds.isError()) { return Error("Could not parse $LISTEN_FDS=\"" + listenFdsEnv.get() + "\" as integer");
