From b56201c8c416f1ec5b3be7170fbc4b0480ea5284 Mon Sep 17 00:00:00 2001 From: svastm Date: Wed, 31 Aug 2016 17:30:07 +0200 Subject: [PATCH] Fix TCPServer constructor - Avoid a call to the protected method `get_stack()` which cause a build fail. - Remove the constructor definition `TCPServer(NetworkStack *stack)` because it has no implementation. --- features/net/network-socket/TCPServer.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/features/net/network-socket/TCPServer.h b/features/net/network-socket/TCPServer.h index ff9f177f06..e114573888 100644 --- a/features/net/network-socket/TCPServer.h +++ b/features/net/network-socket/TCPServer.h @@ -41,13 +41,11 @@ public: * * @param stack Network stack as target for socket */ - TCPServer(NetworkStack *stack); - - template - TCPServer(IF *iface) + template + TCPServer(S *stack) : _pending(0), _accept_sem(0) { - open(iface->get_stack()); + open(stack); } /** Destroy a socket