You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by dm...@apache.org on 2014/12/10 22:11:04 UTC

mesos git commit: Added comment for getIP function declaration

Repository: mesos
Updated Branches:
  refs/heads/master 7a98b3de1 -> 3ea7e9a45


Added comment for getIP function declaration

Review: https://reviews.apache.org/r/28788


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/3ea7e9a4
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/3ea7e9a4
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/3ea7e9a4

Branch: refs/heads/master
Commit: 3ea7e9a4553a74f83d3926a5856cb9ba869f14dd
Parents: 7a98b3d
Author: Evelina Dumitrescu <ev...@gmail.com>
Authored: Wed Dec 10 13:09:37 2014 -0800
Committer: Dominic Hamon <dh...@twitter.com>
Committed: Wed Dec 10 13:10:24 2014 -0800

----------------------------------------------------------------------
 3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/3ea7e9a4/3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp
index 39f6cb0..a7aed65 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp
@@ -179,6 +179,8 @@ inline Try<std::string> getHostname(uint32_t ip)
   return std::string(hostname);
 }
 
+// Returns a Try of the IP for the provided hostname or an error if no IP is
+// obtained.
 inline Try<uint32_t> getIP(const std::string& hostname, sa_family_t family)
 {
   struct addrinfo ai, *aip;