From 3f11139bf361ecc9dbcf928c48c67f2fdb95b771 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 1 Jul 2005 10:20:28 +0000 Subject: r8047: "oid" is defined in a heimdal header. With my gcc this generates a ton of shadowed variable warnings. Fix that. Volker (This used to be commit 3846c0afa1db96239b3aaf2e7ee2427b48f6e2f0) --- source3/libads/ldap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3') diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 1289015464..b3faad1fb1 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -2388,7 +2388,7 @@ static time_t ads_parse_time(const char *str) } -const char *ads_get_attrname_by_oid(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, const char * oid) +const char *ads_get_attrname_by_oid(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, const char * OID) { ADS_STATUS rc; int count = 0; @@ -2396,11 +2396,11 @@ const char *ads_get_attrname_by_oid(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, const char *expr = NULL; const char *attrs[] = { "lDAPDisplayName", NULL }; - if (ads == NULL || mem_ctx == NULL || oid == NULL) { + if (ads == NULL || mem_ctx == NULL || OID == NULL) { goto done; } - expr = talloc_asprintf(mem_ctx, "(attributeId=%s)", oid); + expr = talloc_asprintf(mem_ctx, "(attributeId=%s)", OID); if (expr == NULL) { goto done; } @@ -2420,7 +2420,7 @@ const char *ads_get_attrname_by_oid(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, const done: DEBUG(0,("ads_get_attrname_by_oid: failed to retrieve name for oid: %s\n", - oid)); + OID)); return NULL; } -- cgit