From 598ebaa2b3bb0ade6e07e0f520a966526142cb19 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 15 Oct 2002 21:29:37 +0000 Subject: Added cli_set_timeout() call. Jeremy. (This used to be commit 94a5c589945ffd4719f7509c162cf994f7914312) --- source3/libsmb/clientgen.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source3/libsmb') 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 @@ -22,6 +22,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. ****************************************************************************/ -- cgit