author | mjm <mjm> | 2002-12-28 12:59:38 (UTC) |
---|---|---|
committer | mjm <mjm> | 2002-12-28 12:59:38 (UTC) |
commit | 1adf0d153cd8c4714719183af45ed703abef0a43 (patch) (side-by-side diff) | |
tree | 8845f1bbee4d050a18a6e5fa970bb5adaa277bc0 /noncore/net/wellenreiter/libwellenreiter/source/wl_sock.cc | |
parent | 7a6a55d19048de7920eb885e80a26e1bef0f66e4 (diff) | |
download | opie-1adf0d153cd8c4714719183af45ed703abef0a43.zip opie-1adf0d153cd8c4714719183af45ed703abef0a43.tar.gz opie-1adf0d153cd8c4714719183af45ed703abef0a43.tar.bz2 |
cleanup
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 @@ -56,20 +56,20 @@ int wl_send(const char *host, int port, const char *string, ...) if((sock=socket(AF_INET, SOCK_DGRAM, 0)) < 0) { wl_logerr("Cannot set up socket: %s", strerror(errno)); - return -1; + return 0; } if(sendto(sock, buffer, sizeof(buffer), 0, (struct sockaddr *)&saddr, sizeof(saddr)) < 0) { wl_logerr("Cannot write to socket: %s", strerror(errno)); close(sock); - return -1; + return 0; } if(close(sock) < 0) wl_logerr("Cannot close socket: %s", strerror(errno)); - return 0; + return 1; } /* Check for new messages on commsock */ |