diff options
Diffstat (limited to 'src/test/test_switch_id.c')
-rw-r--r-- | src/test/test_switch_id.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_switch_id.c b/src/test/test_switch_id.c index 9b093671e8..a47858ab07 100644 --- a/src/test/test_switch_id.c +++ b/src/test/test_switch_id.c @@ -47,7 +47,8 @@ check_can_bind_low_ports(void) } int one = 1; - if (setsockopt(fd, SOL_SOCKET,SO_REUSEADDR, &one, sizeof(one))) { + if (setsockopt(fd, SOL_SOCKET,SO_REUSEADDR, (void*)&one, + (socklen_t)sizeof(one))) { perror("setsockopt"); tor_close_socket_simple(fd); return -1; |