From cc8dd14442ed10a2a7079d1707a045a33e451c13 Mon Sep 17 00:00:00 2001 From: Alon Bar-Lev Date: Wed, 29 Feb 2012 22:11:34 +0200 Subject: cleanup: remove C++ warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alon Bar-Lev Acked-by: Samuli Seppänen Signed-off-by: David Sommerseth --- socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'socket.c') diff --git a/socket.c b/socket.c index 1a772af..61265e4 100644 --- a/socket.c +++ b/socket.c @@ -3106,7 +3106,7 @@ openvpn_inet_ntop(int af, const void *src, char *dst, socklen_t size) default: ASSERT (0); } - // cannot direclty use &size because of strict aliasing rules + /* cannot direclty use &size because of strict aliasing rules */ return (WSAAddressToString((struct sockaddr *)&ss, sizeof(ss), NULL, dst, &s) == 0)? dst : NULL; } @@ -3119,7 +3119,7 @@ openvpn_inet_pton(int af, const char *src, void *dst) char src_copy[INET6_ADDRSTRLEN+1]; CLEAR(ss); - // stupid non-const API + /* stupid non-const API */ strncpynt(src_copy, src, INET6_ADDRSTRLEN+1); if (WSAStringToAddress(src_copy, af, NULL, (struct sockaddr *)&ss, &size) == 0) { -- cgit