Diffstat (limited to 'noncore/net/wellenreiter/libwellenreiter/source/wl_sock.cc') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/libwellenreiter/source/wl_sock.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/wl_sock.cc b/noncore/net/wellenreiter/libwellenreiter/source/wl_sock.cc index 5714afb..4942fba 100644 --- a/noncore/net/wellenreiter/libwellenreiter/source/wl_sock.cc +++ b/noncore/net/wellenreiter/libwellenreiter/source/wl_sock.cc @@ -57,5 +57,5 @@ int wl_send(const char *host, int port, const char *string, ...) { wl_logerr("Cannot set up socket: %s", strerror(errno)); - return -1; + return 0; } @@ -64,5 +64,5 @@ int wl_send(const char *host, int port, const char *string, ...) wl_logerr("Cannot write to socket: %s", strerror(errno)); close(sock); - return -1; + return 0; } @@ -70,5 +70,5 @@ int wl_send(const char *host, int port, const char *string, ...) wl_logerr("Cannot close socket: %s", strerror(errno)); - return 0; + return 1; } |