summaryrefslogtreecommitdiffstats
path: root/libcsoap
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-02-18 03:31:13 +0100
committerGravatar Nikias Bassen2013-02-18 03:31:13 +0100
commit7527650eaab1f1910f6bfa24061a0bddc7937b9f (patch)
tree2bc2c5b4e6b88af0cc465d91ca46b48b028a12bc /libcsoap
parentd7cf83b38c3edd77c6159bc3c62144b52fabe223 (diff)
downloadcsoap-7527650eaab1f1910f6bfa24061a0bddc7937b9f.tar.gz
csoap-7527650eaab1f1910f6bfa24061a0bddc7937b9f.tar.bz2
fixed several compiler warnings
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);