summaryrefslogtreecommitdiff
path: root/source4/client
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-09-28 14:38:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:39:07 -0500
commit73028ea572becf2f0c13a5b34f8cdddf54a8925b (patch)
tree3eed6170b1fa7b25bbfd260b330f2cc1029530a7 /source4/client
parentca92ed140c7caef19225ec2024260e1c56244eab (diff)
downloadsamba-73028ea572becf2f0c13a5b34f8cdddf54a8925b.tar.gz
samba-73028ea572becf2f0c13a5b34f8cdddf54a8925b.tar.bz2
samba-73028ea572becf2f0c13a5b34f8cdddf54a8925b.zip
r10581: Remove some unused globals + make static
(This used to be commit 236bd1b97f6e3b97739839fd043a2388384e1abc)
Diffstat (limited to 'source4/client')
-rw-r--r--source4/client/client.c30
1 files changed, 4 insertions, 26 deletions
diff --git a/source4/client/client.c b/source4/client/client.c
index 62841af23e..034b6786a0 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);