Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Feb 2017 18:08:31 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r433662 - in head/audio/zinf: . files
Message-ID:  <201702081808.v18I8VLu089816@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Wed Feb  8 18:08:31 2017
New Revision: 433662
URL: https://svnweb.freebsd.org/changeset/ports/433662

Log:
  audio/zinf: unbreak with gcc5 or earlier after r433187
  
  src/player.cpp: In member function 'void Player::HandlePrefsChanged(Event*)':
  src/player.cpp:1970:40: error: 'stoi' was not declared in this scope
           nPort = stoi(buffer.substr(pos));
                                          ^
  
  Reported by:	marino
  Pointy hat to:	jbeich (forgot libc++ leaks C++11)

Modified:
  head/audio/zinf/Makefile   (contents, props changed)
  head/audio/zinf/files/patch-base_src_player.cpp   (contents, props changed)

Modified: head/audio/zinf/Makefile
==============================================================================
--- head/audio/zinf/Makefile	Wed Feb  8 18:06:46 2017	(r433661)
+++ head/audio/zinf/Makefile	Wed Feb  8 18:08:31 2017	(r433662)
@@ -3,7 +3,7 @@
 
 PORTNAME=	zinf
 PORTVERSION=	2.2.5
-PORTREVISION=	21
+PORTREVISION=	22
 CATEGORIES=	audio ipv6
 MASTER_SITES=	SF
 

Modified: head/audio/zinf/files/patch-base_src_player.cpp
==============================================================================
--- head/audio/zinf/files/patch-base_src_player.cpp	Wed Feb  8 18:06:46 2017	(r433661)
+++ head/audio/zinf/files/patch-base_src_player.cpp	Wed Feb  8 18:08:31 2017	(r433662)
@@ -42,9 +42,9 @@
 -           nPort = atoi(port);
 +       size_t pos = buffer.find(':');
 +       if (pos != string::npos) {
-+	   proxyAddr = buffer.substr(0, pos++);
-+	   if (pos < buffer.size())
-+	       nPort = stoi(buffer.substr(pos));
++          proxyAddr = buffer.substr(0, pos++);
++          if (pos < buffer.size())
++              nPort = atoi(buffer.substr(pos).c_str());
 +       }
      }
  



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