summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2015-05-26 01:37:23 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-05-26 01:38:22 +0200
commitc3355c014139bb65f869493365296922a3427c49 (patch)
tree44863e21fb850140aa569cb8d6b2a3a4bd558e4e
parentbf0a318aca635a3122e1743f42df727b012414be (diff)
downloadktorrent-c3355c014139bb65f869493365296922a3427c49.tar.gz
ktorrent-c3355c014139bb65f869493365296922a3427c49.zip
Fix missing return
This resolves Bug 2432 Signed-off-by: François Andriot <francois.andriot@free.fr> (cherry picked from commit f420bad7c2d57085ca2bd7c767575e29ae4c4554)
-rw-r--r--plugins/upnp/upnpmcastsocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/upnp/upnpmcastsocket.cpp b/plugins/upnp/upnpmcastsocket.cpp
index 3b8be45..0172ed2 100644
--- a/plugins/upnp/upnpmcastsocket.cpp
+++ b/plugins/upnp/upnpmcastsocket.cpp
@@ -21,7 +21,7 @@
#include <kurl.h>
extern "C" {
#include <unistd.h>
- inline ssize_t mycread (int __fd, void *__buf, size_t __nbytes) { read(__fd, __buf, __nbytes); }
+ inline ssize_t mycread (int __fd, void *__buf, size_t __nbytes) { return read(__fd, __buf, __nbytes); }
};
#include <sys/socket.h>
#include <netinet/in.h>