diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-04-22 16:44:53 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-22 19:36:16 +1000 |
commit | ec0bb2f46b855d44cccb71a5511c2acb7d8eae09 (patch) | |
tree | e8a077c8534cae77d80607aed096487169c52b7d /source4/utils/net/drs | |
parent | ec3d1de61dd81f042b9ac65ff4f94db5b4ae643c (diff) | |
download | samba-ec0bb2f46b855d44cccb71a5511c2acb7d8eae09.tar.gz samba-ec0bb2f46b855d44cccb71a5511c2acb7d8eae09.tar.bz2 samba-ec0bb2f46b855d44cccb71a5511c2acb7d8eae09.zip |
s4-net: fixed two compiler warnings
Diffstat (limited to 'source4/utils/net/drs')
-rw-r--r-- | source4/utils/net/drs/net_drs_replicate.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source4/utils/net/drs/net_drs_replicate.c b/source4/utils/net/drs/net_drs_replicate.c index cda82c022b..1b250eb424 100644 --- a/source4/utils/net/drs/net_drs_replicate.c +++ b/source4/utils/net/drs/net_drs_replicate.c @@ -38,7 +38,6 @@ net_drs_server_dn_from_dc_name(struct net_drs_context *drs_ctx, struct ldb_dn *dn; struct ldb_dn *server_dn = NULL; struct ldb_result *ldb_res; - const char *filter; static const char *attrs[] = { "objectGUID", "name", @@ -63,8 +62,8 @@ net_drs_server_dn_from_dc_name(struct net_drs_context *drs_ctx, "(&(objectCategory=server)(|(name=%1$s)(dNSHostName=%1$s)))", dc_name); if (ldb_err != LDB_SUCCESS) { - d_printf("ldb_seach() failed with err: %d (%s); filter: (%s)", - ldb_err, ldb_errstring(drs_ctx->ldap.ldb), filter); + d_printf("ldb_seach() failed with err: %d (%s);", + ldb_err, ldb_errstring(drs_ctx->ldap.ldb)); goto failed; } if (ldb_res->count != 1) { @@ -91,7 +90,6 @@ static bool net_drs_ntds_guid_from_dc_name(struct net_drs_context *drs_ctx, int ldb_err; struct ldb_dn *server_dn; struct ldb_result *ldb_res; - const char *filter; static const char *attrs[] = { "objectGUID", "msDS-portLDAP", @@ -118,8 +116,8 @@ static bool net_drs_ntds_guid_from_dc_name(struct net_drs_context *drs_ctx, server_dn, LDB_SCOPE_ONELEVEL, attrs, "%s", "(|(objectCategory=nTDSDSA)(objectCategory=nTDSDSARO))"); if (ldb_err != LDB_SUCCESS) { - d_printf("ldb_seach() failed with err: %d (%s); filter: (%s)", - ldb_err, ldb_errstring(drs_ctx->ldap.ldb), filter); + d_printf("ldb_seach() failed with err: %d (%s)", + ldb_err, ldb_errstring(drs_ctx->ldap.ldb)); goto failed; } if (ldb_res->count != 1) { |