1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r10581: Remove some unused globals + make static

(This used to be commit 236bd1b97f)
This commit is contained in:
Jelmer Vernooij 2005-09-28 14:38:07 +00:00 committed by Gerald (Jerry) Carter
parent ca92ed140c
commit 73028ea572

View File

@ -35,10 +35,6 @@
#include "system/readline.h" #include "system/readline.h"
#include "pstring.h" #include "pstring.h"
#ifndef REGISTER
#define REGISTER 0
#endif
static struct smbcli_state *cli; static struct smbcli_state *cli;
static int port = 0; static int port = 0;
static pstring cur_dir = "\\"; static pstring cur_dir = "\\";
@ -54,51 +50,33 @@ static int name_type = 0x20;
static int process_tok(fstring tok); static int process_tok(fstring tok);
static int cmd_help(const char **cmd_ptr); static int cmd_help(const char **cmd_ptr);
/* 30 second timeout on most commands */ static time_t newer_than = 0;
#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 int archive_level = 0; static int archive_level = 0;
static BOOL translation = False; 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 BOOL prompt = True;
static int printmode = 1; static int printmode = 1;
static BOOL recurse = False; static BOOL recurse = False;
BOOL lowercase = False; static BOOL lowercase = False;
static const char *dest_ip; static const char *dest_ip;
#define SEPARATORS " \t\n\r"
static BOOL abort_mget = True; static BOOL abort_mget = True;
static pstring fileselection = ""; static pstring fileselection = "";
/* timing globals */ /* timing globals */
uint64_t get_total_size = 0; static uint64_t get_total_size = 0;
uint_t get_total_time_ms = 0; static uint_t get_total_time_ms = 0;
static uint64_t put_total_size = 0; static uint64_t put_total_size = 0;
static uint_t put_total_time_ms = 0; static uint_t put_total_time_ms = 0;
/* totals globals */ /* totals globals */
static double dir_total; static double dir_total;
#define USENMB
/* some forward declarations */ /* some forward declarations */
static struct smbcli_state *do_connect(const char *server, const char *share, struct cli_credentials *cred); static struct smbcli_state *do_connect(const char *server, const char *share, struct cli_credentials *cred);