From 7c94b93af60d12bf8ffcd8d543e727878b82ddbf Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 14 Aug 2006 12:42:46 +0000 Subject: r17535: Reformatting, this had many tabs instead of ^$ (This used to be commit 0f483cf66c203d8590998b83cbeeb236ba06ab63) --- source3/libads/ldap.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source3/libads/ldap.c') diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 5d972b35fc..5ff1ce435d 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -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; } -- cgit