svn commit: samba r10581 - in branches/SAMBA_4_0/source/client: .
jelmer at samba.org
jelmer at samba.org
Wed Sep 28 14:38:08 GMT 2005
Author: jelmer
Date: 2005-09-28 14:38:07 +0000 (Wed, 28 Sep 2005)
New Revision: 10581
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10581
Log:
Remove some unused globals + make static
Modified:
branches/SAMBA_4_0/source/client/client.c
Changeset:
Modified: branches/SAMBA_4_0/source/client/client.c
===================================================================
--- branches/SAMBA_4_0/source/client/client.c 2005-09-28 14:35:51 UTC (rev 10580)
+++ branches/SAMBA_4_0/source/client/client.c 2005-09-28 14:38:07 UTC (rev 10581)
@@ -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 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);
More information about the samba-cvs
mailing list