mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r17535: Reformatting, this had many tabs instead of ^$
This commit is contained in:
parent
4fc773080a
commit
0f483cf66c
@ -47,28 +47,28 @@ static SIG_ATOMIC_T gotalarm;
|
||||
/***************************************************************
|
||||
Signal function to tell us we timed out.
|
||||
****************************************************************/
|
||||
|
||||
|
||||
static void gotalarm_sig(void)
|
||||
{
|
||||
gotalarm = 1;
|
||||
}
|
||||
|
||||
|
||||
LDAP *ldap_open_with_timeout(const char *server, int port, unsigned int to)
|
||||
{
|
||||
LDAP *ldp = NULL;
|
||||
|
||||
|
||||
/* Setup timeout */
|
||||
gotalarm = 0;
|
||||
CatchSignal(SIGALRM, SIGNAL_CAST gotalarm_sig);
|
||||
alarm(to);
|
||||
/* End setup timeout. */
|
||||
|
||||
|
||||
ldp = ldap_open(server, port);
|
||||
|
||||
|
||||
/* Teardown timeout. */
|
||||
CatchSignal(SIGALRM, SIGNAL_CAST SIG_IGN);
|
||||
alarm(0);
|
||||
|
||||
|
||||
return ldp;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user