retroshare: fix build with gcc >= 8

This commit is contained in:
maxice8 2018-10-27 12:13:47 -03:00
parent b5cd6341f1
commit 6d62a76882
No known key found for this signature in database
GPG Key ID: 543B9D4F4299F06B
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
From 4d287d68bc9725f403dc7d952a927d401c5d6c97 Mon Sep 17 00:00:00 2001
From: csoler <csoler@users.sourceforge.net>
Date: Wed, 9 May 2018 13:27:16 +0200
Subject: [PATCH] fixed weird mistake in grouter which causes an issue only in
gcc > 8
---
libretroshare/src/grouter/p3grouter.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libretroshare/src/grouter/p3grouter.cc b/libretroshare/src/grouter/p3grouter.cc
index 75e8fd4d6a..d184b15f5c 100644
--- libretroshare/src/grouter/p3grouter.cc
+++ libretroshare/src/grouter/p3grouter.cc
@@ -540,7 +540,7 @@ if(itm == NULL)
void GRouterTunnelInfo::removeVirtualPeer(const TurtleVirtualPeerId& vpid)
{
- std::set<TurtleVirtualPeerId,RsGRouterTransactionChunkItem*>::iterator it = virtual_peers.find(vpid) ;
+ std::set<TurtleVirtualPeerId>::iterator it = virtual_peers.find(vpid) ;
if(it == virtual_peers.end())
{