summaryrefslogtreecommitdiff
path: root/vio
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2003-04-28 19:05:57 +0300
committerunknown <monty@mashka.mysql.fi>2003-04-28 19:05:57 +0300
commit68faea2eaa718bf3fe46e1c3f328346f7fd92f7e (patch)
tree96d5e3ccb7f58564a76e77f8eb11b497988864dc /vio
parent8a05f5c7f497ff483f711dee55d3a1e7f5fe7e6a (diff)
downloadmariadb-git-68faea2eaa718bf3fe46e1c3f328346f7fd92f7e.tar.gz
Fix to remove compiler warnings
include/my_global.h: Fixed wrong #ifdef include/violite.h: Fix to remove compiler warning libmysqld/libmysqld.c: Fix to remove compiler warning myisam/sort.c: Fix to remove compiler warning myisammrg/myrg_extra.c: Fix to remove compiler warning vio/viossl.c: Fix to remove compiler warning
Diffstat (limited to 'vio')
-rw-r--r--vio/viossl.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/vio/viossl.c b/vio/viossl.c
index 0f34a45f9aa..834343a77d9 100644
--- a/vio/viossl.c
+++ b/vio/viossl.c
@@ -212,13 +212,14 @@ my_socket vio_ssl_fd(Vio* vio)
}
-my_bool vio_ssl_peer_addr(Vio * vio, char *buf)
+my_bool vio_ssl_peer_addr(Vio * vio, char *buf, uint16 *port)
{
DBUG_ENTER("vio_ssl_peer_addr");
DBUG_PRINT("enter", ("sd=%d", vio->sd));
if (vio->localhost)
{
strmov(buf,"127.0.0.1");
+ *port=0;
}
else
{
@@ -229,8 +230,13 @@ my_bool vio_ssl_peer_addr(Vio * vio, char *buf)
DBUG_PRINT("exit", ("getpeername, error: %d", socket_errno));
DBUG_RETURN(1);
}
- /* FIXME */
-/* my_inet_ntoa(vio->remote.sin_addr,buf); */
+#ifdef TO_BE_FIXED
+ my_inet_ntoa(vio->remote.sin_addr,buf);
+ *port= 0;
+#else
+ strmov(buf, "unknown");
+ *port= 0;
+#endif
}
DBUG_PRINT("exit", ("addr=%s", buf));
DBUG_RETURN(0);