[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] fix some compilation warnings
commit 725d6157df150ec9151450dc2422d9838c20187e
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Tue Mar 31 14:42:01 2015 -0400
fix some compilation warnings
---
src/test/test_address.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/test/test_address.c b/src/test/test_address.c
index 317b370..4bd631d 100644
--- a/src/test/test_address.c
+++ b/src/test/test_address.c
@@ -454,7 +454,7 @@ test_address_get_if_addrs_ioctl(void *arg)
#define FAKE_SOCKET_FD (42)
-tor_socket_t
+static tor_socket_t
fake_open_socket(int domain, int type, int protocol)
{
(void)domain;
@@ -468,7 +468,7 @@ static int last_connected_socket_fd = 0;
static int connect_retval = 0;
-tor_socket_t
+static tor_socket_t
pretend_to_connect(tor_socket_t socket, const struct sockaddr *address,
socklen_t address_len)
{
@@ -482,11 +482,12 @@ pretend_to_connect(tor_socket_t socket, const struct sockaddr *address,
static struct sockaddr *mock_addr = NULL;
-int
+static int
fake_getsockname(tor_socket_t socket, struct sockaddr *address,
socklen_t *address_len)
{
socklen_t bytes_to_copy = 0;
+ (void) socket;
if (!mock_addr)
return -1;
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits