From 5bbfe2b42fd065e34bf20a24cb235863ad41fddc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 14 Sep 2010 13:12:00 +1000 Subject: s4-secrets: fixed shadowed variable warning we already have a 'v' in scope --- source4/param/secrets.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source4/param/secrets.c b/source4/param/secrets.c index 8fc595fbb0..f6ab5e93fb 100644 --- a/source4/param/secrets.c +++ b/source4/param/secrets.c @@ -139,14 +139,14 @@ struct dom_sid *secrets_get_domain_sid(TALLOC_CTX *mem_ctx, } if (sec_channel_type) { - int v; - v = ldb_msg_find_attr_as_int(msg, "secureChannelType", -1); - if (v == -1) { + int t; + t = ldb_msg_find_attr_as_int(msg, "secureChannelType", -1); + if (t == -1) { *errstring = talloc_asprintf(mem_ctx, "Failed to find secureChannelType for %s in %s", domain, (char *) ldb_get_opaque(ldb, "ldb_url")); return NULL; } - *sec_channel_type = v; + *sec_channel_type = t; } result = talloc(mem_ctx, struct dom_sid); -- cgit