Browse Source

fixed warnings

pull/1911/head
orignal 2 years ago
parent
commit
dc6499aa98
  1. 2
      libi2pd/TransitTunnel.h
  2. 2
      libi2pd/Tunnel.h

2
libi2pd/TransitTunnel.h

@ -94,7 +94,7 @@ namespace tunnel
TransitTunnel (receiveTunnelID, nextIdent, nextTunnelID, layerKey, ivKey), TransitTunnel (receiveTunnelID, nextIdent, nextTunnelID, layerKey, ivKey),
m_Endpoint (false) {}; // transit endpoint is always outbound m_Endpoint (false) {}; // transit endpoint is always outbound
void Cleanup () { m_Endpoint.Cleanup (); } void Cleanup () override { m_Endpoint.Cleanup (); }
void HandleTunnelDataMsg (std::shared_ptr<i2p::I2NPMessage>&& tunnelMsg) override; void HandleTunnelDataMsg (std::shared_ptr<i2p::I2NPMessage>&& tunnelMsg) override;
size_t GetNumTransmittedBytes () const { return m_Endpoint.GetNumReceivedBytes (); } size_t GetNumTransmittedBytes () const { return m_Endpoint.GetNumReceivedBytes (); }

2
libi2pd/Tunnel.h

@ -165,7 +165,7 @@ namespace tunnel
bool IsInbound() const override { return true; } bool IsInbound() const override { return true; }
// override TunnelBase // override TunnelBase
void Cleanup () { m_Endpoint.Cleanup (); }; void Cleanup () override { m_Endpoint.Cleanup (); };
private: private:

Loading…
Cancel
Save