summaryrefslogtreecommitdiff
path: root/tests/x509dn.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/x509dn.c')
-rw-r--r--tests/x509dn.c2
1 files changed, 1 insertions, 1 deletions
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)