summaryrefslogtreecommitdiff
path: root/source4/dsdb/common
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2013-04-11 22:30:27 -0700
committerStefan Metzmacher <metze@samba.org>2013-04-19 13:15:40 +0200
commit77f7a46e180596fa081f4069edea9efd23e3f0c5 (patch)
treead15bc2824cec5655edf0ffbe1c626d245ed8f3f /source4/dsdb/common
parent31714c97845fff11b2997c86b5fc3a3bff8ed710 (diff)
downloadsamba-77f7a46e180596fa081f4069edea9efd23e3f0c5.tar.gz
samba-77f7a46e180596fa081f4069edea9efd23e3f0c5.tar.bz2
samba-77f7a46e180596fa081f4069edea9efd23e3f0c5.zip
s4:dsdb: Fix warnings about not set / set but unused / shadowed variables
Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Apr 19 13:15:40 CEST 2013 on sn-devel-104
Diffstat (limited to 'source4/dsdb/common')
-rw-r--r--source4/dsdb/common/dsdb_dn.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source4/dsdb/common/dsdb_dn.c b/source4/dsdb/common/dsdb_dn.c
index 0029f5d49e..ab42776226 100644
--- a/source4/dsdb/common/dsdb_dn.c
+++ b/source4/dsdb/common/dsdb_dn.c
@@ -76,7 +76,6 @@ struct dsdb_dn *dsdb_dn_parse(TALLOC_CTX *mem_ctx, struct ldb_context *ldb,
{
struct dsdb_dn *dsdb_dn;
struct ldb_dn *dn;
- const char *data;
size_t len;
TALLOC_CTX *tmp_ctx;
char *p1;
@@ -127,8 +126,6 @@ struct dsdb_dn *dsdb_dn_parse(TALLOC_CTX *mem_ctx, struct ldb_context *ldb,
if (tmp_ctx == NULL) {
return NULL;
}
-
- data = (const char *)dn_blob->data;
len = dn_blob->length - 2;
p1 = talloc_strndup(tmp_ctx, (const char *)dn_blob->data + 2, len);