From 4cbd7bae4e21df0bd1d1ee24450e39fb9b9b2429 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Thu, 7 May 2009 14:38:15 +0200 Subject: Fix warnings. --- tests/openpgpself.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/openpgpself.c') 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) -- cgit v1.2.1