summaryrefslogtreecommitdiffstats
path: root/libcsoap
diff options
context:
space:
mode:
Diffstat (limited to 'libcsoap')
-rw-r--r--libcsoap/soap-nudp.c4
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);