{
int tmp = 1;
if( setsockopt( s, IPPROTO_TCP, TCP_NODELAY,
- &tmp, sizeof(tmp) ) == -1 )
+ (char *) &tmp, sizeof(tmp) ) == -1 )
{
Debug( LDAP_DEBUG_ANY,
"setsockopt(TCP_NODELAY failed on %d\n",
/*
* Y2K YEAR
*/
- /* per POSIX tm_year should be offset by 1900 */
+ /* per STDC & POSIX tm_year should be offset by 1900 */
#define YEAR_POSIX(y) ((y) + 1900)
/*
*/
#define YEAR_CAREFUL(y) ((y) < 1900 ? (y) + 1900 : (y))
- /*
- ** if year is < 1990 and < 70 must be offset by 2000 as Unix epoch
- ** started in 1970. if year is < 1990 but >= 70, offset by 1900.
- ** if year is >= 1900, it must be the real year.
- */
-#define YEAR_PEDANTIC(y) ((y) < 1900 \
- ? ((y) < 70 ? (y) + 2000 ? (y) + 1900) \
- : (y))
-
#define YEAR(y) YEAR_CAREFUL(y)
/* \f */