You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2019/07/08 22:01:56 UTC

[mesos] branch master updated: Removed an unnecessary call to `.c_str()`.

This is an automated email from the ASF dual-hosted git repository.

bennoe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git


The following commit(s) were added to refs/heads/master by this push:
     new db4aea8  Removed an unnecessary call to `.c_str()`.
db4aea8 is described below

commit db4aea8a4feeb001f375cd9523afc463dd8a4126
Author: Benno Evers <be...@mesosphere.com>
AuthorDate: Tue Jul 9 00:00:47 2019 +0200

    Removed an unnecessary call to `.c_str()`.
---
 3rdparty/libprocess/src/pid.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/3rdparty/libprocess/src/pid.cpp b/3rdparty/libprocess/src/pid.cpp
index 44f56c8..9c41308 100644
--- a/3rdparty/libprocess/src/pid.cpp
+++ b/3rdparty/libprocess/src/pid.cpp
@@ -123,7 +123,7 @@ istream& operator>>(istream& stream, UPID& pid)
   // if not use `net::getIP()` to resolve the hostname.
   //
   // TODO(evelinad): Extend this to support IPv6.
-  Try<net::IP> ip = net::IP::parse(host.c_str(), AF_INET);
+  Try<net::IP> ip = net::IP::parse(host, AF_INET);
   if (ip.isError()) {
     pid.host = host;
     ip = net::getIP(host, AF_INET);