summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2009-05-07 14:38:15 +0200
committerSimon Josefsson <simon@josefsson.org>2009-05-07 14:38:46 +0200
commit4cbd7bae4e21df0bd1d1ee24450e39fb9b9b2429 (patch)
tree7be60d69062854186d018ec5d95dbdfd1993a513 /tests
parentf9865ce118eca4c3ab45f8f919a961a03473fd0c (diff)
downloadgnutls-4cbd7bae4e21df0bd1d1ee24450e39fb9b9b2429.tar.gz
Fix warnings.
Diffstat (limited to 'tests')
-rw-r--r--tests/anonself.c2
-rw-r--r--tests/dhepskself.c2
-rw-r--r--tests/openpgpself.c2
-rw-r--r--tests/oprfi.c2
-rw-r--r--tests/pskself.c2
-rw-r--r--tests/resume.c2
-rw-r--r--tests/tlsia.c2
-rw-r--r--tests/x509dn.c2
-rw-r--r--tests/x509self.c2
-rw-r--r--tests/x509signself.c2
10 files changed, 10 insertions, 10 deletions
diff --git a/tests/anonself.c b/tests/anonself.c
index cdefece4b8..5e45ca7279 100644
--- a/tests/anonself.c
+++ b/tests/anonself.c
@@ -216,7 +216,7 @@ server_start (void)
sa_serv.sin_addr.s_addr = INADDR_ANY;
sa_serv.sin_port = htons (PORT); /* Server Port number */
- setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof (int));
+ setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, (void *) &optval, sizeof (int));
err = bind (listen_sd, (SA *) & sa_serv, sizeof (sa_serv));
if (err == -1)
diff --git a/tests/dhepskself.c b/tests/dhepskself.c
index d6a0f3dbbd..cec51f795b 100644
--- a/tests/dhepskself.c
+++ b/tests/dhepskself.c
@@ -220,7 +220,7 @@ server_start (void)
sa_serv.sin_addr.s_addr = INADDR_ANY;
sa_serv.sin_port = htons (PORT); /* Server Port number */
- setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof (int));
+ setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, (void *) &optval, sizeof (int));
err = bind (listen_sd, (SA *) & sa_serv, sizeof (sa_serv));
if (err == -1)
diff --git a/tests/openpgpself.c b/tests/openpgpself.c
index e9755d0335..5ef15caa71 100644
--- a/tests/openpgpself.c
+++ b/tests/openpgpself.c
@@ -352,7 +352,7 @@ server_start (void)
sa_serv.sin_addr.s_addr = INADDR_ANY;
sa_serv.sin_port = htons (PORT); /* Server Port number */
- setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof (int));
+ setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, (void *) &optval, sizeof (int));
err = bind (listen_sd, (SA *) & sa_serv, sizeof (sa_serv));
if (err == -1)
diff --git a/tests/oprfi.c b/tests/oprfi.c
index 9b4b8148d4..68aba675d3 100644
--- a/tests/oprfi.c
+++ b/tests/oprfi.c
@@ -292,7 +292,7 @@ server_start (void)
sa_serv.sin_addr.s_addr = INADDR_ANY;
sa_serv.sin_port = htons (PORT); /* Server Port number */
- setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof (int));
+ setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, (void *) &optval, sizeof (int));
err = bind (listen_sd, (SA *) & sa_serv, sizeof (sa_serv));
if (err == -1)
diff --git a/tests/pskself.c b/tests/pskself.c
index 3378b762d6..d3e42f473f 100644
--- a/tests/pskself.c
+++ b/tests/pskself.c
@@ -206,7 +206,7 @@ server_start (void)
sa_serv.sin_addr.s_addr = INADDR_ANY;
sa_serv.sin_port = htons (PORT); /* Server Port number */
- setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof (int));
+ setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, (void *) &optval, sizeof (int));
err = bind (listen_sd, (SA *) & sa_serv, sizeof (sa_serv));
if (err == -1)
diff --git a/tests/resume.c b/tests/resume.c
index 22618c42ce..bf538279d6 100644
--- a/tests/resume.c
+++ b/tests/resume.c
@@ -258,7 +258,7 @@ global_start (void)
sa_serv.sin_addr.s_addr = INADDR_ANY;
sa_serv.sin_port = htons (PORT); /* Server Port number */
- setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof (int));
+ setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, (void *) &optval, sizeof (int));
err = bind (listen_sd, (SA *) & sa_serv, sizeof (sa_serv));
if (err == -1)
diff --git a/tests/tlsia.c b/tests/tlsia.c
index e874100203..aac5d34b56 100644
--- a/tests/tlsia.c
+++ b/tests/tlsia.c
@@ -378,7 +378,7 @@ server_start (void)
sa_serv.sin_addr.s_addr = INADDR_ANY;
sa_serv.sin_port = htons (PORT); /* Server Port number */
- setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof (int));
+ setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, (void *) &optval, sizeof (int));
err = bind (listen_sd, (SA *) & sa_serv, sizeof (sa_serv));
if (err == -1)
diff --git a/tests/x509dn.c b/tests/x509dn.c
index dcbe245316..d3f58f1620 100644
--- a/tests/x509dn.c
+++ b/tests/x509dn.c
@@ -385,7 +385,7 @@ server_start (void)
sa_serv.sin_addr.s_addr = INADDR_ANY;
sa_serv.sin_port = htons (PORT); /* Server Port number */
- setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof (int));
+ setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, (void *) &optval, sizeof (int));
err = bind (listen_sd, (SA *) & sa_serv, sizeof (sa_serv));
if (err == -1)
diff --git a/tests/x509self.c b/tests/x509self.c
index 280d656a22..4ff3f10320 100644
--- a/tests/x509self.c
+++ b/tests/x509self.c
@@ -349,7 +349,7 @@ server_start (void)
sa_serv.sin_addr.s_addr = INADDR_ANY;
sa_serv.sin_port = htons (PORT); /* Server Port number */
- setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof (int));
+ setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, (void *) &optval, sizeof (int));
err = bind (listen_sd, (SA *) & sa_serv, sizeof (sa_serv));
if (err == -1)
diff --git a/tests/x509signself.c b/tests/x509signself.c
index c4ba598db1..7e42879d54 100644
--- a/tests/x509signself.c
+++ b/tests/x509signself.c
@@ -350,7 +350,7 @@ server_start (void)
sa_serv.sin_addr.s_addr = INADDR_ANY;
sa_serv.sin_port = htons (PORT); /* Server Port number */
- setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof (int));
+ setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, (void *) &optval, sizeof (int));
err = bind (listen_sd, (SA *) & sa_serv, sizeof (sa_serv));
if (err == -1)