s4-secrets: fixed shadowed variable warning
authorAndrew Tridgell <tridge@samba.org>
Tue, 14 Sep 2010 03:12:00 +0000 (13:12 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 15 Sep 2010 05:39:35 +0000 (15:39 +1000)
we already have a 'v' in scope

source4/param/secrets.c

index 8fc595fbb055b9929434f2fcc2f1f0418c949862..f6ab5e93fbcf02968d78eea78409d9b03be928bc 100644 (file)
@@ -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);