From 73028ea572becf2f0c13a5b34f8cdddf54a8925b Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 28 Sep 2005 14:38:07 +0000 Subject: [PATCH] r10581: Remove some unused globals + make static (This used to be commit 236bd1b97f6e3b97739839fd043a2388384e1abc) --- source4/client/client.c | 30 ++++-------------------------- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/source4/client/client.c b/source4/client/client.c index 62841af23ee..034b6786a00 100644 --- a/source4/client/client.c +++ b/source4/client/client.c @@ -35,10 +35,6 @@ #include "system/readline.h" #include "pstring.h" -#ifndef REGISTER -#define REGISTER 0 -#endif - static struct smbcli_state *cli; static int port = 0; static pstring cur_dir = "\\"; @@ -54,51 +50,33 @@ static int name_type = 0x20; static int process_tok(fstring tok); static int cmd_help(const char **cmd_ptr); -/* 30 second timeout on most commands */ -#define CLIENT_TIMEOUT (30*1000) -#define SHORT_TIMEOUT (5*1000) - -/* value for unused fid field in trans2 secondary request */ -#define FID_UNUSED (0xFFFF) - -time_t newer_than = 0; +static time_t newer_than = 0; static int archive_level = 0; static BOOL translation = False; -/* clitar bits insert */ -extern int blocksize; -extern BOOL tar_inc; -extern BOOL tar_reset; -/* clitar bits end */ - - static BOOL prompt = True; static int printmode = 1; static BOOL recurse = False; -BOOL lowercase = False; +static BOOL lowercase = False; static const char *dest_ip; -#define SEPARATORS " \t\n\r" - static BOOL abort_mget = True; static pstring fileselection = ""; /* timing globals */ -uint64_t get_total_size = 0; -uint_t get_total_time_ms = 0; +static uint64_t get_total_size = 0; +static uint_t get_total_time_ms = 0; static uint64_t put_total_size = 0; static uint_t put_total_time_ms = 0; /* totals globals */ static double dir_total; -#define USENMB - /* some forward declarations */ static struct smbcli_state *do_connect(const char *server, const char *share, struct cli_credentials *cred);