/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 1998-2013 The OpenLDAP Foundation.
+ * Copyright 1998-2014 The OpenLDAP Foundation.
* Portions Copyright 2007 by Howard Chu, Symas Corporation.
* All rights reserved.
*
#ifdef HAVE_WINSOCK
fd_set writefds;
struct timeval tv, *tvp;
- int i;
FD_ZERO( &writefds );
FD_SET( slapd_ws_sockets[sd], &writefds );
tv.tv_usec = 0;
tvp = &tv;
} else {
- tv = NULL;
+ tvp = NULL;
}
return select( 0, NULL, &writefds, NULL, tvp );
#else