1
0
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:
Volker Lendecke 2006-08-14 12:42:46 +00:00 committed by Gerald (Jerry) Carter
parent 4fc773080a
commit 0f483cf66c

View File

@ -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;
}