summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2013-05-17 05:22:15 -0700
committerAndrew Bartlett <abartlet@samba.org>2013-05-20 21:54:06 +1000
commit972417131d8c23855d728f35fc7680c2dedb21b7 (patch)
tree44ed421e3585eca2628149883af1ac543237716d
parentbfce9690bf6e6592d32dd41642a33cbe3c027b81 (diff)
downloadsamba-972417131d8c23855d728f35fc7680c2dedb21b7.tar.gz
samba-972417131d8c23855d728f35fc7680c2dedb21b7.tar.bz2
samba-972417131d8c23855d728f35fc7680c2dedb21b7.zip
Fix warnings about set but unused variables
Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source4/dsdb/kcc/kcc_drs_replica_info.c8
-rw-r--r--source4/dsdb/kcc/kcc_periodic.c3
-rw-r--r--source4/libnet/libnet_site.c2
3 files changed, 1 insertions, 12 deletions
diff --git a/source4/dsdb/kcc/kcc_drs_replica_info.c b/source4/dsdb/kcc/kcc_drs_replica_info.c
index 0b6b82ad56..7aa7f5a0f4 100644
--- a/source4/dsdb/kcc/kcc_drs_replica_info.c
+++ b/source4/dsdb/kcc/kcc_drs_replica_info.c
@@ -395,17 +395,14 @@ static WERROR get_master_ncs(TALLOC_CTX *mem_ctx, struct ldb_context *samdb,
int ret;
unsigned int i;
char *nc_str;
- int is_level_post_2003;
/* In W2003 and greater, msDS-hasMasterNCs attribute lists the writable NC replicas */
- is_level_post_2003 = 1;
ret = ldb_search(samdb, mem_ctx, &res, ldb_get_config_basedn(samdb),
LDB_SCOPE_DEFAULT, post_2003_attrs, "(objectguid=%s)", ntds_guid_str);
if (ret != LDB_SUCCESS) {
DEBUG(0,(__location__ ": Failed objectguid search - %s\n", ldb_errstring(samdb)));
- is_level_post_2003 = 0;
attrs = post_2003_attrs;
ret = ldb_search(samdb, mem_ctx, &res, ldb_get_config_basedn(samdb),
LDB_SCOPE_DEFAULT, pre_2003_attrs, "(objectguid=%s)", ntds_guid_str);
@@ -787,8 +784,6 @@ NTSTATUS kccdrs_replica_get_info(struct irpc_message *msg,
struct ldb_context *samdb;
TALLOC_CTX *mem_ctx;
enum drsuapi_DsReplicaInfoType info_type;
- uint32_t flags;
- const char *attribute_name, *value_dn;
service = talloc_get_type(msg->private_data, struct kccsrv_service);
samdb = service->samdb;
@@ -827,9 +822,6 @@ NTSTATUS kccdrs_replica_get_info(struct irpc_message *msg,
info_type = req2->info_type;
object_dn_str = req2->object_dn;
req_src_dsa_guid = req2->source_dsa_guid;
- flags = req2->flags;
- attribute_name = req2->attribute_name;
- value_dn = req2->value_dn_str;
}
reply = req->out.info;
diff --git a/source4/dsdb/kcc/kcc_periodic.c b/source4/dsdb/kcc/kcc_periodic.c
index 8f705d7aa1..4db4d4ee70 100644
--- a/source4/dsdb/kcc/kcc_periodic.c
+++ b/source4/dsdb/kcc/kcc_periodic.c
@@ -163,9 +163,8 @@ static void kccsrv_notify_drepl_server_done(struct tevent_req *subreq)
struct kccsrv_notify_drepl_server_state *state =
tevent_req_callback_data(subreq,
struct kccsrv_notify_drepl_server_state);
- NTSTATUS status;
- status = dcerpc_dreplsrv_refresh_r_recv(subreq, state);
+ dcerpc_dreplsrv_refresh_r_recv(subreq, state);
TALLOC_FREE(subreq);
/* we don't care about errors */
diff --git a/source4/libnet/libnet_site.c b/source4/libnet/libnet_site.c
index 288e13d59a..5a58c8aa94 100644
--- a/source4/libnet/libnet_site.c
+++ b/source4/libnet/libnet_site.c
@@ -150,7 +150,6 @@ NTSTATUS libnet_JoinSite(struct libnet_context *ctx,
int rtn;
const char *server_dn_str;
- const char *config_dn_str;
struct nbt_name name;
const char *dest_addr = NULL;
@@ -191,7 +190,6 @@ NTSTATUS libnet_JoinSite(struct libnet_context *ctx,
return status;
}
- config_dn_str = r->out.config_dn_str;
server_dn_str = r->out.server_dn_str;
/*