mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
The tsleep() versions had different return types
This commit is contained in:
parent
de808662ac
commit
e80e9c8342
@ -60,7 +60,7 @@ int sanity LDAP_P((void));
|
|||||||
int St_init LDAP_P((St **st));
|
int St_init LDAP_P((St **st));
|
||||||
|
|
||||||
/* tsleep.c */
|
/* tsleep.c */
|
||||||
void tsleep LDAP_P((time_t interval));
|
int tsleep LDAP_P((time_t interval));
|
||||||
#if defined( HAVE_LWP )
|
#if defined( HAVE_LWP )
|
||||||
void start_lwp_scheduler LDAP_P(( void ));
|
void start_lwp_scheduler LDAP_P(( void ));
|
||||||
#endif
|
#endif
|
||||||
|
@ -147,11 +147,12 @@ start_lwp_scheduler( void )
|
|||||||
* Here we assume we have fully preemptive threads, and that sleep()
|
* Here we assume we have fully preemptive threads, and that sleep()
|
||||||
* does the right thing.
|
* does the right thing.
|
||||||
*/
|
*/
|
||||||
void
|
int
|
||||||
tsleep(
|
tsleep(
|
||||||
time_t interval
|
time_t interval
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
sleep( interval );
|
sleep( interval );
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
#endif /* !HAVE_LWP */
|
#endif /* !HAVE_LWP */
|
||||||
|
Loading…
Reference in New Issue
Block a user