]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Try to make the win32 ersatz_socketpair pass.
authorNick Mathewson <nickm@torproject.org>
Fri, 2 Aug 2013 15:04:30 +0000 (11:04 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 2 Aug 2013 15:04:30 +0000 (11:04 -0400)
src/test/test_util.c

index 213751e5e7031e4ce9adbaaf16e14ac866c383f5..05d28d7877764b04fecd2715985d8e281b627f52 100644 (file)
@@ -3426,11 +3426,7 @@ test_util_socketpair(void *arg)
     ersatz ? tor_ersatz_socketpair : tor_socketpair;
   int n = get_n_open_sockets();
   tor_socket_t fds[2] = {TOR_INVALID_SOCKET, TOR_INVALID_SOCKET};
-#ifdef _WIN32
-  const int family = AF_INET;
-#else
   const int family = AF_UNIX;
-#endif
 
   tt_int_op(0, ==, tor_socketpair_fn(family, SOCK_STREAM, 0, fds));
   tt_assert(SOCKET_OK(fds[0]));