diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2014-02-18 18:39:10 +0000 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2014-02-18 18:39:10 +0000 |
commit | b7dabd9efbd86724944f9a1e79bc04dc4e6cc9f3 (patch) | |
tree | 229d248e8b9f18f1aa1233cb2a50021a2acc8ba2 /src/testcurl/https/test_https_time_out.c | |
parent | d45a402420ff067428422e33efeedf341026c382 (diff) | |
download | libmicrohttpd-b7dabd9efbd86724944f9a1e79bc04dc4e6cc9f3.tar.gz libmicrohttpd-b7dabd9efbd86724944f9a1e79bc04dc4e6cc9f3.zip |
remove inet_pton() from tests, use real IPv6 loopback for test
Diffstat (limited to 'src/testcurl/https/test_https_time_out.c')
-rw-r--r-- | src/testcurl/https/test_https_time_out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testcurl/https/test_https_time_out.c b/src/testcurl/https/test_https_time_out.c index 452035bb..f8f3c99d 100644 --- a/src/testcurl/https/test_https_time_out.c +++ b/src/testcurl/https/test_https_time_out.c | |||
@@ -55,7 +55,7 @@ test_tls_session_time_out (gnutls_session_t session) | |||
55 | memset (&sa, '\0', sizeof (struct sockaddr_in)); | 55 | memset (&sa, '\0', sizeof (struct sockaddr_in)); |
56 | sa.sin_family = AF_INET; | 56 | sa.sin_family = AF_INET; |
57 | sa.sin_port = htons (DEAMON_TEST_PORT); | 57 | sa.sin_port = htons (DEAMON_TEST_PORT); |
58 | inet_pton (AF_INET, "127.0.0.1", &sa.sin_addr); | 58 | sa.sin_addr.s_addr = htonl (INADDR_LOOPBACK); |
59 | 59 | ||
60 | gnutls_transport_set_ptr (session, (gnutls_transport_ptr_t) (long) sd); | 60 | gnutls_transport_set_ptr (session, (gnutls_transport_ptr_t) (long) sd); |
61 | 61 | ||