summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-06-13 04:29:20 +0000
committerTim Potter <tpot@samba.org>2003-06-13 04:29:20 +0000
commit61742d1117e12cbb131f9c55ab0a9acbcc1f4d3a (patch)
tree47ba85ae8f72f3175fbf5859af5a85e81e7cb865 /source3/libads
parentaf0ddc81d82eb964ddab551dcd7309aaec96a618 (diff)
downloadsamba-61742d1117e12cbb131f9c55ab0a9acbcc1f4d3a.tar.gz
samba-61742d1117e12cbb131f9c55ab0a9acbcc1f4d3a.tar.bz2
samba-61742d1117e12cbb131f9c55ab0a9acbcc1f4d3a.zip
Fix shadow variable warning.
(This used to be commit c22a4074bd2b998339826ba629fe48153639ec18)
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ldap_printer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libads/ldap_printer.c b/source3/libads/ldap_printer.c
index f5cd4f2885..aa5ac15b5d 100644
--- a/source3/libads/ldap_printer.c
+++ b/source3/libads/ldap_printer.c
@@ -31,7 +31,7 @@ ADS_STATUS ads_find_printer_on_server(ADS_STRUCT *ads, void **res,
const char *printer, const char *servername)
{
ADS_STATUS status;
- char *srv_dn, **srv_cn, *exp;
+ char *srv_dn, **srv_cn, *s;
const char *attrs[] = {"*", "nTSecurityDescriptor", NULL};
status = ads_find_machine_acct(ads, res, servername);
@@ -44,12 +44,12 @@ ADS_STATUS ads_find_printer_on_server(ADS_STRUCT *ads, void **res,
srv_cn = ldap_explode_dn(srv_dn, 1);
ads_msgfree(ads, *res);
- asprintf(&exp, "(cn=%s-%s)", srv_cn[0], printer);
- status = ads_search(ads, res, exp, attrs);
+ asprintf(&s, "(cn=%s-%s)", srv_cn[0], printer);
+ status = ads_search(ads, res, s, attrs);
ldap_memfree(srv_dn);
ldap_value_free(srv_cn);
- free(exp);
+ free(s);
return status;
}