summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-10-15 21:29:37 +0000
committerJeremy Allison <jra@samba.org>2002-10-15 21:29:37 +0000
commit598ebaa2b3bb0ade6e07e0f520a966526142cb19 (patch)
tree970e93092ee1063b17bc84573c7a83b28091e8a5 /source3/libsmb
parent71b7f1bd75772bcf5fc145f7371ea65e90ea2228 (diff)
downloadsamba-598ebaa2b3bb0ade6e07e0f520a966526142cb19.tar.gz
samba-598ebaa2b3bb0ade6e07e0f520a966526142cb19.tar.bz2
samba-598ebaa2b3bb0ade6e07e0f520a966526142cb19.zip
Added cli_set_timeout() call.
Jeremy. (This used to be commit 94a5c589945ffd4719f7509c162cf994f7914312)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clientgen.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 2236d8508d..28480043b9 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -23,6 +23,17 @@
#include "includes.h"
/****************************************************************************
+ Change the timeout (in milliseconds).
+****************************************************************************/
+
+unsigned int cli_set_timeout(struct cli_state *cli, unsigned int timeout)
+{
+ unsigned int old_timeout = cli->timeout;
+ cli->timeout = timeout;
+ return old_timeout;
+}
+
+/****************************************************************************
Change the port number used to call on.
****************************************************************************/