summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorDerrell Lipman <derrell.lipman@unwireduniverse.com>2008-03-06 10:41:42 -0500
committerDerrell Lipman <derrell.lipman@unwireduniverse.com>2008-03-06 10:41:42 -0500
commit914cd3e483bd83fb4d8e769b90d9136336ea51e9 (patch)
tree95f17eeb5c6ee299e57edd3d6686b492d136bfe4 /source3/client
parent5eb347193f7f52bfc672b83da6e45b59db31423c (diff)
downloadsamba-914cd3e483bd83fb4d8e769b90d9136336ea51e9.tar.gz
samba-914cd3e483bd83fb4d8e769b90d9136336ea51e9.tar.bz2
samba-914cd3e483bd83fb4d8e769b90d9136336ea51e9.zip
Eliminate global variable in_client and a plethora of extern declarations.
Derrell (This used to be commit b7f34e7ef2907b498a0645ce68f2773ed7d60cdc)
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c3
-rw-r--r--source3/client/smbspool.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 79b7dfe838..67060cb574 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -33,7 +33,6 @@ extern int do_smb_browse(void); /* mDNS browsing */
extern bool AllowDebugChange;
extern bool override_logfile;
extern char tar_type;
-extern bool in_client;
static int port = 0;
static char *service;
@@ -4701,7 +4700,7 @@ static int do_message_op(void)
pc = poptGetContext("smbclient", argc, (const char **) argv, long_options, 0);
poptSetOtherOptionHelp(pc, "service <password>");
- in_client = true; /* Make sure that we tell lp_load we are */
+ lp_set_in_client(true); /* Make sure that we tell lp_load we are */
while ((opt = poptGetNextOpt(pc)) != -1) {
diff --git a/source3/client/smbspool.c b/source3/client/smbspool.c
index e7df22c2bc..e827df4b09 100644
--- a/source3/client/smbspool.c
+++ b/source3/client/smbspool.c
@@ -35,7 +35,6 @@
* Globals...
*/
-extern bool in_client; /* Boolean for client library */
/*
@@ -228,7 +227,7 @@ static bool smb_encrypt;
setup_logging("smbspool", True);
- in_client = True; /* Make sure that we tell lp_load we are */
+ lp_set_in_client(True); /* Make sure that we tell lp_load we are */
load_case_tables();