From ebc7fd0a3c3cf7f199cf89f82f1457ddd2cf8686 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 15 Oct 2002 21:30:06 +0000 Subject: Added cli_set_timeout() call. Jeremy. (This used to be commit 9225054179b6642ae8be790d35e6590aefa46dd3) --- source3/libsmb/clientgen.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source3/libsmb/clientgen.c') 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