summaryrefslogtreecommitdiff
path: root/source3/utils/net_ads.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-01-09 15:36:07 +0000
committerGerald Carter <jerry@samba.org>2004-01-09 15:36:07 +0000
commit19e9a7e1b947d7f26b9923a9c89ab088d76e340d (patch)
tree24cb8807636deeb1275f9e3b8f0c3314957b74af /source3/utils/net_ads.c
parent5982f2c17b38ba865371d648976cdb1282cf61e7 (diff)
downloadsamba-19e9a7e1b947d7f26b9923a9c89ab088d76e340d.tar.gz
samba-19e9a7e1b947d7f26b9923a9c89ab088d76e340d.tar.bz2
samba-19e9a7e1b947d7f26b9923a9c89ab088d76e340d.zip
fix some warnings from the Sun compiler; also merge some of abartlet's error code changes form 3.0
(This used to be commit 2279e98cb81faaf8a4e971fec339955f14c23858)
Diffstat (limited to 'source3/utils/net_ads.c')
-rw-r--r--source3/utils/net_ads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index 9ee2f3c093..24ae9a8811 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -688,7 +688,7 @@ int net_ads_join(int argc, const char **argv)
rc = ads_search_dn(ads, &res, dn, NULL);
ads_msgfree(ads, res);
- if (rc.error_type == ADS_ERROR_LDAP && rc.err.rc == LDAP_NO_SUCH_OBJECT) {
+ if (rc.error_type == ENUM_ADS_ERROR_LDAP && rc.err.rc == LDAP_NO_SUCH_OBJECT) {
d_printf("ads_join_realm: organizational unit %s does not exist (dn:%s)\n",
org_unit, dn);
return -1;