(socket_set_reuseaddr): remove duplicate
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6671 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -68,18 +68,6 @@ RCSID("$Id$");
|
||||
|
||||
#include <roken.h>
|
||||
|
||||
static void
|
||||
socket_set_reuseaddr (int sock, int val)
|
||||
{
|
||||
#if defined(SO_REUSEADDR) && defined(HAVE_SETSOCKOPT)
|
||||
if(setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (void *)&val,
|
||||
sizeof(val)) < 0){
|
||||
perror("setsockopt");
|
||||
exit(1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static int
|
||||
listen_v4 (int port)
|
||||
{
|
||||
|
Reference in New Issue
Block a user