Added cli_set_timeout() call.
authorJeremy Allison <jra@samba.org>
Tue, 15 Oct 2002 21:29:37 +0000 (21:29 +0000)
committerJeremy Allison <jra@samba.org>
Tue, 15 Oct 2002 21:29:37 +0000 (21:29 +0000)
Jeremy.

source/libsmb/clientgen.c

index 2236d8508d33009461a3794de8d9bd1c7093f759..28480043b9ba26421e56718178fd48364b5e1377 100644 (file)
 
 #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.
 ****************************************************************************/