fprintf( stderr, "ber_scanf returns -1\n" );
exit( 1 );
}
- printf( "got int %d\n", i );
+ printf( "got int %ld\n", i );
return( 0 );
}
0, 0, 0 );
} else {
Debug( LDAP_DEBUG_TRACE, "wait4msg (timeout %ld sec, %ld usec)\n",
- timeout->tv_sec, timeout->tv_usec, 0 );
+ (long) timeout->tv_sec, (long) timeout->tv_usec, 0 );
}
#endif /* LDAP_DEBUG */
}
Debug( LDAP_DEBUG_TRACE, "wait4msg: %ld secs to go\n",
- tv.tv_sec, 0, 0 );
+ (long) tv.tv_sec, 0, 0 );
start_time = tmp_time;
}
}
ldap_MD5Init(&MD5context);
ldap_MD5Update(&MD5context,
- cred, strlen(cred));
+ (const unsigned char *)cred, strlen(cred));
ldap_MD5Final(MD5digest, &MD5context);
if ( b64_ntop(MD5digest, sizeof(MD5digest),
ldap_SHA1Init(&SHA1context);
ldap_SHA1Update(&SHA1context,
- (unsigned char *) cred, strlen(cred));
+ (const unsigned char *) cred, strlen(cred));
ldap_SHA1Final(SHA1digest, &SHA1context);
if (b64_ntop(SHA1digest, sizeof(SHA1digest),