Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 May 2019 20:57:58 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r500932 - head/benchmarks/postal/files
Message-ID:  <201905062057.x46KvwM9057853@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Mon May  6 20:57:58 2019
New Revision: 500932
URL: https://svnweb.freebsd.org/changeset/ports/500932

Log:
  benchmarks/postal: Unbreak on CURRENT
  
  tcp.cpp:135:10: error: assigning to 'int' from incompatible type '__bind<int &, sockaddr *&, unsigned long>'
      rc = bind(m_fd, source, sizeof(struct sockaddr_in));
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  
  http://beefy12.nyi.freebsd.org/data/head-amd64-default/p500844_s347134/logs/errors/postal-0.73_3.log

Modified:
  head/benchmarks/postal/files/patch-tcp.cpp

Modified: head/benchmarks/postal/files/patch-tcp.cpp
==============================================================================
--- head/benchmarks/postal/files/patch-tcp.cpp	Mon May  6 20:47:46 2019	(r500931)
+++ head/benchmarks/postal/files/patch-tcp.cpp	Mon May  6 20:57:58 2019	(r500932)
@@ -1,5 +1,14 @@
 --- tcp.cpp.orig	2012-01-01 11:24:45 UTC
 +++ tcp.cpp
+@@ -132,7 +132,7 @@ int tcp::Connect(short port)
+   {
+     sockaddr *source;
+     source = (sockaddr *)m_sourceAddr->get_rand_addr();
+-    rc = bind(m_fd, source, sizeof(struct sockaddr_in));
++    rc = ::bind(m_fd, source, sizeof(struct sockaddr_in));
+     if(rc)
+     {
+       fprintf(stderr, "Can't bind to port.\n");
 @@ -178,10 +178,18 @@ int tcp::ConnectTLS()
  #ifdef USE_OPENSSL
    m_sslCtx = NULL;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905062057.x46KvwM9057853>