From 7527650eaab1f1910f6bfa24061a0bddc7937b9f Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 18 Feb 2013 03:31:13 +0100 Subject: fixed several compiler warnings --- libcsoap/soap-nudp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcsoap') 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); -- cgit v1.1-32-gdbae