mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
fix type format
This commit is contained in:
parent
b7c41e655f
commit
6911e557de
@ -624,8 +624,8 @@ tool_args( int argc, char **argv )
|
|||||||
nettimeout.tv_sec = ival;
|
nettimeout.tv_sec = ival;
|
||||||
}
|
}
|
||||||
if( nettimeout.tv_sec < 0 || nettimeout.tv_sec > LDAP_MAXINT ) {
|
if( nettimeout.tv_sec < 0 || nettimeout.tv_sec > LDAP_MAXINT ) {
|
||||||
fprintf( stderr, _("%s: invalid network timeout (%d) specified\n"),
|
fprintf( stderr, _("%s: invalid network timeout (%ld) specified\n"),
|
||||||
prog, nettimeout.tv_sec );
|
prog, (long)nettimeout.tv_sec );
|
||||||
exit( EXIT_FAILURE );
|
exit( EXIT_FAILURE );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -1038,8 +1038,8 @@ tool_conn_setup( int dont, void (*private_setup)( LDAP * ) )
|
|||||||
if ( ldap_set_option( ld, LDAP_OPT_NETWORK_TIMEOUT, (void *) &nettimeout )
|
if ( ldap_set_option( ld, LDAP_OPT_NETWORK_TIMEOUT, (void *) &nettimeout )
|
||||||
!= LDAP_OPT_SUCCESS )
|
!= LDAP_OPT_SUCCESS )
|
||||||
{
|
{
|
||||||
fprintf( stderr, "Could not set LDAP_OPT_NETWORK_TIMEOUT %d\n",
|
fprintf( stderr, "Could not set LDAP_OPT_NETWORK_TIMEOUT %ld\n",
|
||||||
nettimeout.tv_sec );
|
(long)nettimeout.tv_sec );
|
||||||
exit( EXIT_FAILURE );
|
exit( EXIT_FAILURE );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user