From 70e72e84212f5b6b15f2e1a2b2d95d1d67abac7f Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 27 Aug 2019 08:30:20 +0200 Subject: Make InputBase::open() return void --- src/input/Udp.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/input/Udp.cpp') diff --git a/src/input/Udp.cpp b/src/input/Udp.cpp index 5d4f964..b527530 100644 --- a/src/input/Udp.cpp +++ b/src/input/Udp.cpp @@ -38,7 +38,7 @@ using namespace std; namespace Inputs { -int Udp::open(const std::string& name) +void Udp::open(const std::string& name) { // Skip the udp:// part if it is present const string endpoint = (name.substr(0, 6) == "udp://") ? @@ -57,8 +57,6 @@ int Udp::open(const std::string& name) m_name = name; openUdpSocket(endpoint); - - return 0; } void Udp::openUdpSocket(const std::string& endpoint) @@ -149,7 +147,7 @@ static uint16_t unpack2(const uint8_t *buf) return (((uint16_t)buf[0]) << 8) | buf[1]; } -int Sti_d_Rtp::open(const std::string& name) +void Sti_d_Rtp::open(const std::string& name) { // Skip the rtp:// part if it is present const string endpoint = (name.substr(0, 10) == "rtp://") ? @@ -168,8 +166,6 @@ int Sti_d_Rtp::open(const std::string& name) m_name = name; openUdpSocket(endpoint); - - return 0; } void Sti_d_Rtp::receive_packet() -- cgit v1.2.3