aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_address.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-03-31 14:42:01 -0400
committerNick Mathewson <nickm@torproject.org>2015-03-31 14:42:01 -0400
commit725d6157df150ec9151450dc2422d9838c20187e (patch)
tree6a6635d928ab8121309fcbd742e00ebd2bff5dbd /src/test/test_address.c
parent30e933b13660e62d10997f4809b3f13235b30325 (diff)
downloadtor-725d6157df150ec9151450dc2422d9838c20187e.tar.gz
tor-725d6157df150ec9151450dc2422d9838c20187e.zip
fix some compilation warnings
Diffstat (limited to 'src/test/test_address.c')
-rw-r--r--src/test/test_address.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/test_address.c b/src/test/test_address.c
index 317b370912..4bd631d39c 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;