diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-08-14 12:42:46 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:37 -0500 |
commit | 7c94b93af60d12bf8ffcd8d543e727878b82ddbf (patch) | |
tree | 7902203cde11636e69aa2e7dbfd869406361acac /source3/libads | |
parent | 6beb3675cf8170aa676a7a574cdc87563677ef9f (diff) | |
download | samba-7c94b93af60d12bf8ffcd8d543e727878b82ddbf.tar.gz samba-7c94b93af60d12bf8ffcd8d543e727878b82ddbf.tar.bz2 samba-7c94b93af60d12bf8ffcd8d543e727878b82ddbf.zip |
r17535: Reformatting, this had many tabs instead of ^$
(This used to be commit 0f483cf66c203d8590998b83cbeeb236ba06ab63)
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/ldap.c | 12 |
1 files changed, 6 insertions, 6 deletions
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; } |