summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-25 16:23:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:59:13 -0500
commite70eae2b4c987eb413f085c7b3250a152769670e (patch)
tree1ed7fb49f1390c977b798d6d3c963b79221822fe
parent909b111f587705a45f63540b39968f1af58a9b5d (diff)
downloadsamba-e70eae2b4c987eb413f085c7b3250a152769670e.tar.gz
samba-e70eae2b4c987eb413f085c7b3250a152769670e.tar.xz
samba-e70eae2b4c987eb413f085c7b3250a152769670e.zip
r14721: Fix a couple of warnings.
(This used to be commit 426ac78108b35adc8412d12d2d888c3d5ddf4171)
-rw-r--r--source4/client/client.c13
-rw-r--r--source4/librpc/idl/krb5pac.idl2
-rw-r--r--source4/torture/ldap/cldapbench.c1
-rw-r--r--source4/torture/local/socket.c1
4 files changed, 12 insertions, 5 deletions
diff --git a/source4/client/client.c b/source4/client/client.c
index 80b3f00e58..6a2ba6e98e 100644
--- a/source4/client/client.c
+++ b/source4/client/client.c
@@ -2966,19 +2966,24 @@ static int process_stdin(struct smbclient_context *ctx)
return a connection to a server
*******************************************************/
static struct smbclient_context *do_connect(TALLOC_CTX *mem_ctx,
- const char *server, const char *share, struct cli_credentials *cred)
+ const char *specified_server, const char *specified_share, struct cli_credentials *cred)
{
NTSTATUS status;
struct smbclient_context *ctx = talloc_zero(mem_ctx, struct smbclient_context);
+ char *server, *share;
+
if (!ctx) {
return NULL;
}
rl_ctx = ctx; /* Ugly hack */
- if (strncmp(share, "\\\\", 2) == 0 ||
- strncmp(share, "//", 2) == 0) {
- smbcli_parse_unc(share, ctx, &server, &share);
+ if (strncmp(specified_share, "\\\\", 2) == 0 ||
+ strncmp(specified_share, "//", 2) == 0) {
+ smbcli_parse_unc(specified_share, ctx, &server, &share);
+ } else {
+ share = talloc_strdup(ctx, specified_share);
+ server = talloc_strdup(ctx, specified_server);
}
ctx->remote_cur_dir = talloc_strdup(ctx, "\\");
diff --git a/source4/librpc/idl/krb5pac.idl b/source4/librpc/idl/krb5pac.idl
index dc7e551116..5fa6d5525f 100644
--- a/source4/librpc/idl/krb5pac.idl
+++ b/source4/librpc/idl/krb5pac.idl
@@ -5,7 +5,7 @@
#include "idl_types.h"
[
- uuid("5-6-7-8"),
+ uuid("5-6-7-8-9"),
version(0.0),
pointer_default(unique),
helpstring("Active Directory KRB5 PAC"),
diff --git a/source4/torture/ldap/cldapbench.c b/source4/torture/ldap/cldapbench.c
index fc45f883e7..c49e4eb687 100644
--- a/source4/torture/ldap/cldapbench.c
+++ b/source4/torture/ldap/cldapbench.c
@@ -24,6 +24,7 @@
#include "lib/events/events.h"
#include "libcli/cldap/cldap.h"
#include "libcli/resolve/resolve.h"
+#include "torture/torture.h"
struct bench_state {
int pass_count, fail_count;
diff --git a/source4/torture/local/socket.c b/source4/torture/local/socket.c
index acea977331..9a29ef0fec 100644
--- a/source4/torture/local/socket.c
+++ b/source4/torture/local/socket.c
@@ -25,6 +25,7 @@
#include "lib/events/events.h"
#include "system/network.h"
#include "netif/netif.h"
+#include "torture/torture.h"
#define CHECK_STATUS(status, correct) do { \
if (!NT_STATUS_EQUAL(status, correct)) { \