summaryrefslogtreecommitdiff
path: root/source4/client
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-09-07 15:35:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:05:28 -0500
commit959915a8cbea0c598ef1f29ce666329a521ef2f6 (patch)
tree68e1b2b483f60be3839dc476ab0ca0fb4dd0ec0b /source4/client
parentcd962355abad90a2161765a7be7d26e63572cab7 (diff)
downloadsamba-959915a8cbea0c598ef1f29ce666329a521ef2f6.tar.gz
samba-959915a8cbea0c598ef1f29ce666329a521ef2f6.tar.bz2
samba-959915a8cbea0c598ef1f29ce666329a521ef2f6.zip
r25001: Fix more C++ and other warnings, fix some of the indentation with ts=4 lines that I accidently added earlier.
(This used to be commit 0bcb21ed740fcec0f48ad36bbc2deee2948e8fc7)
Diffstat (limited to 'source4/client')
-rw-r--r--source4/client/client.c6
-rw-r--r--source4/client/smbmount.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/source4/client/client.c b/source4/client/client.c
index 1fdbec4bfd..0a3cb21752 100644
--- a/source4/client/client.c
+++ b/source4/client/client.c
@@ -3045,10 +3045,10 @@ static struct smbclient_context *do_connect(TALLOC_CTX *mem_ctx,
/****************************************************************************
handle a -L query
****************************************************************************/
-static int do_host_query(const char *query_host)
+static int do_host_query(const char *query_host, const char *workgroup)
{
browse_host(query_host);
- list_servers(lp_workgroup());
+ list_servers(workgroup);
return(0);
}
@@ -3209,7 +3209,7 @@ static int do_message_op(const char *desthost, const char *destip, int name_type
}
if (query_host) {
- return do_host_query(query_host);
+ return do_host_query(query_host, lp_workgroup());
}
if (message) {
diff --git a/source4/client/smbmount.c b/source4/client/smbmount.c
index f15b1f7030..7bd42b84cf 100644
--- a/source4/client/smbmount.c
+++ b/source4/client/smbmount.c
@@ -911,7 +911,7 @@ static void parse_mount_smb(int argc, char **argv)
DEBUG(3,("mount.smbfs started (version %s)\n", VERSION));
if (*workgroup == 0) {
- pstrcpy(workgroup,lp_workgroup());
+ pstrcpy(workgroup, lp_workgroup());
}
if (!*my_netbios_name) {