summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-04-04 17:38:55 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-04-04 17:38:55 +0200
commit61ff9fe785d106f13351964b9453a1cf5a62bdb8 (patch)
tree86fc8707e7802f29e0de5b6f2f0477be8c484598 /tests
parentf505545b2d3c8e927fbbde601b1c4eb3e0df23cc (diff)
downloadgnutls-61ff9fe785d106f13351964b9453a1cf5a62bdb8.tar.gz
use AF_UNIX for socketpair.
Diffstat (limited to 'tests')
-rw-r--r--tests/mini-dtls-rehandshake.c2
-rw-r--r--tests/mini-loss-time.c2
-rw-r--r--tests/mini-record.c2
-rw-r--r--tests/mini-termination.c2
-rw-r--r--tests/openpgp-auth.c2
-rw-r--r--tests/openpgp-auth2.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/tests/mini-dtls-rehandshake.c b/tests/mini-dtls-rehandshake.c
index b8213d401f..7bd002b60b 100644
--- a/tests/mini-dtls-rehandshake.c
+++ b/tests/mini-dtls-rehandshake.c
@@ -364,7 +364,7 @@ static void start (int server_initiated)
int fd[2];
int ret;
- ret = socketpair(AF_LOCAL, SOCK_DGRAM, 0, fd);
+ ret = socketpair(AF_UNIX, SOCK_DGRAM, 0, fd);
if (ret < 0)
{
perror("socketpair");
diff --git a/tests/mini-loss-time.c b/tests/mini-loss-time.c
index 3fe557b615..4d4ebe6236 100644
--- a/tests/mini-loss-time.c
+++ b/tests/mini-loss-time.c
@@ -253,7 +253,7 @@ static void start (int server_packet, int client_packet)
fprintf(stderr, "\nWill discard %s packet %d\n",
(client_packet!=-1)?"client":"server", (client_packet!=-1)?client_packet:server_packet);
- ret = socketpair(AF_LOCAL, SOCK_DGRAM, 0, fd);
+ ret = socketpair(AF_UNIX, SOCK_DGRAM, 0, fd);
if (ret < 0)
{
perror("socketpair");
diff --git a/tests/mini-record.c b/tests/mini-record.c
index 5ed8551706..24bf509156 100644
--- a/tests/mini-record.c
+++ b/tests/mini-record.c
@@ -367,7 +367,7 @@ static void start (const char* prio)
int fd[2];
int ret;
- ret = socketpair(AF_LOCAL, SOCK_DGRAM, 0, fd);
+ ret = socketpair(AF_UNIX, SOCK_DGRAM, 0, fd);
if (ret < 0)
{
perror("socketpair");
diff --git a/tests/mini-termination.c b/tests/mini-termination.c
index e72991e286..1dd0e02e40 100644
--- a/tests/mini-termination.c
+++ b/tests/mini-termination.c
@@ -296,7 +296,7 @@ static void start (const char* prio)
int fd[2];
int ret;
- ret = socketpair(AF_LOCAL, SOCK_STREAM, 0, fd);
+ ret = socketpair(AF_UNIX, SOCK_STREAM, 0, fd);
if (ret < 0)
{
perror("socketpair");
diff --git a/tests/openpgp-auth.c b/tests/openpgp-auth.c
index 97879166c1..d3e521c415 100644
--- a/tests/openpgp-auth.c
+++ b/tests/openpgp-auth.c
@@ -83,7 +83,7 @@ doit ()
gnutls_global_set_log_function (log_message);
}
- err = socketpair (PF_UNIX, SOCK_STREAM, 0, sockets);
+ err = socketpair (AF_UNIX, SOCK_STREAM, 0, sockets);
if (err != 0)
fail ("socketpair %s\n", strerror (errno));
diff --git a/tests/openpgp-auth2.c b/tests/openpgp-auth2.c
index b1db9f2798..92253fd31f 100644
--- a/tests/openpgp-auth2.c
+++ b/tests/openpgp-auth2.c
@@ -82,7 +82,7 @@ doit ()
gnutls_global_set_log_function (log_message);
}
- err = socketpair (PF_UNIX, SOCK_STREAM, 0, sockets);
+ err = socketpair (AF_UNIX, SOCK_STREAM, 0, sockets);
if (err != 0)
fail ("socketpair %s\n", strerror (errno));