diff options
author | Nikias Bassen | 2013-02-18 03:31:13 +0100 |
---|---|---|
committer | Nikias Bassen | 2013-02-18 03:31:13 +0100 |
commit | 7527650eaab1f1910f6bfa24061a0bddc7937b9f (patch) | |
tree | 2bc2c5b4e6b88af0cc465d91ca46b48b028a12bc /libcsoap | |
parent | d7cf83b38c3edd77c6159bc3c62144b52fabe223 (diff) | |
download | csoap-7527650eaab1f1910f6bfa24061a0bddc7937b9f.tar.gz csoap-7527650eaab1f1910f6bfa24061a0bddc7937b9f.tar.bz2 |
fixed several compiler warnings
Diffstat (limited to 'libcsoap')
-rw-r--r-- | libcsoap/soap-nudp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcsoap/soap-nudp.c b/libcsoap/soap-nudp.c index ddcf74c..35e0f66 100644 --- a/libcsoap/soap-nudp.c +++ b/libcsoap/soap-nudp.c @@ -99,7 +99,7 @@ int inet_pton(int af, const char *src, void *dst) return -1; } - if (WSAStringToAddress(src, af, NULL, (struct sockaddr *) &sa, &srcsize) != 0) + if (WSAStringToAddress((LPSTR)src, af, NULL, (struct sockaddr *) &sa, &srcsize) != 0) { errno = WSAGetLastError(); return -1; @@ -235,7 +235,7 @@ _soap_nudp_client_invoke(void *unused, struct SoapCtx *request, struct SoapCtx * return herror_new("soap_nudp_client_invoke", 0, "Destination address is missing"); } - bzero(&addr, sizeof(struct sockaddr_in)); + memset(&addr, '\0', sizeof(struct sockaddr_in)); addr.sin_family = AF_INET; if (to->port == 0) addr.sin_port = htons(NUDP_DEFAULT_PORT); |