summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorCharles <neologix@free.fr>2008-03-09 13:50:56 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-03-09 13:50:56 +0100
commit5b8823e49ac6601ffe4b06495b3e7a95e2337090 (patch)
tree24d483a5fb193348e7e446b7468f5280dded8805 /source3
parentc534eea8665a3b9341db967b7feb454177794d2a (diff)
downloadsamba-5b8823e49ac6601ffe4b06495b3e7a95e2337090.tar.gz
samba-5b8823e49ac6601ffe4b06495b3e7a95e2337090.tar.bz2
samba-5b8823e49ac6601ffe4b06495b3e7a95e2337090.zip
smbget: Make global variables static.
(This used to be commit c430b7831d5dc6f81cfd18ee2bf24bc3f276fe5d)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/smbget.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/utils/smbget.c b/source3/utils/smbget.c
index e5185d09f0..1b916c8563 100644
--- a/source3/utils/smbget.c
+++ b/source3/utils/smbget.c
@@ -27,14 +27,14 @@
#define OFF_T_FORMAT_CAST long
#endif
-int columns = 0;
+static int columns = 0;
static int _resume, _recursive, debuglevel, update;
static char *outputfile;
-time_t total_start_time = 0;
-off_t total_bytes = 0;
+static time_t total_start_time = 0;
+static off_t total_bytes = 0;
#define SMB_MAXPATHLEN MAXPATHLEN
@@ -45,9 +45,9 @@ off_t total_bytes = 0;
/* Number of bytes to read at once */
#define SMB_DEFAULT_BLOCKSIZE 64000
-const char *username = NULL, *password = NULL, *workgroup = NULL;
-int nonprompt = 0, quiet = 0, dots = 0, keep_permissions = 0, verbose = 0, send_stdout = 0;
-int blocksize = SMB_DEFAULT_BLOCKSIZE;
+static const char *username = NULL, *password = NULL, *workgroup = NULL;
+static int nonprompt = 0, quiet = 0, dots = 0, keep_permissions = 0, verbose = 0, send_stdout = 0;
+static int blocksize = SMB_DEFAULT_BLOCKSIZE;
static int smb_download_file(const char *base, const char *name, int recursive, int resume, char *outfile);