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 2012/08/07 03:05:11 UTC

svn commit: r1370093 - /incubator/mesos/trunk/third_party/libprocess/include/stout/net.hpp

Author: benh
Date: Tue Aug  7 01:05:11 2012
New Revision: 1370093

URL: http://svn.apache.org/viewvc?rev=1370093&view=rev
Log:
Fix bug passing 'NULL' instead of 0.

Modified:
    incubator/mesos/trunk/third_party/libprocess/include/stout/net.hpp

Modified: incubator/mesos/trunk/third_party/libprocess/include/stout/net.hpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/third_party/libprocess/include/stout/net.hpp?rev=1370093&r1=1370092&r2=1370093&view=diff
==============================================================================
--- incubator/mesos/trunk/third_party/libprocess/include/stout/net.hpp (original)
+++ incubator/mesos/trunk/third_party/libprocess/include/stout/net.hpp Tue Aug  7 01:05:11 2012
@@ -6,6 +6,7 @@
 
 #include <sys/param.h>
 #include <sys/socket.h>
+#include <sys/types.h>
 
 #ifdef HAVE_LIBCURL
 #include <curl/curl.h>
@@ -86,7 +87,7 @@ inline Try<std::string> getHostname(uint
       hostname,
       MAXHOSTNAMELEN,
       NULL,
-      NULL,
+      0,
       0) != 0) {
     return Try<std::string>::error(strerror(errno));
   }