dsdb: Rename _res argument to _result.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 6 Nov 2012 00:24:59 +0000 (01:24 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 6 Nov 2012 02:33:09 +0000 (13:33 +1100)
Newer versions of heimdal include a macro that is unfortunately named
'_res'. This change prevents the clash.

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/common/util.c

index 086f2a5a1cec616cb3b2989b86e47ad0af151143..632d5bfa202dd79ad57b546934ce2d8861e61391 100644 (file)
@@ -3845,7 +3845,7 @@ int dsdb_replace(struct ldb_context *ldb, struct ldb_message *msg, uint32_t dsdb
  */
 int dsdb_search_dn(struct ldb_context *ldb,
                   TALLOC_CTX *mem_ctx,
-                  struct ldb_result **_res,
+                  struct ldb_result **_result,
                   struct ldb_dn *basedn,
                   const char * const *attrs,
                   uint32_t dsdb_flags)
@@ -3890,7 +3890,7 @@ int dsdb_search_dn(struct ldb_context *ldb,
                return ret;
        }
 
-       *_res = res;
+       *_result = res;
        return LDB_SUCCESS;
 }
 
@@ -3900,7 +3900,7 @@ int dsdb_search_dn(struct ldb_context *ldb,
  */
 int dsdb_search_by_dn_guid(struct ldb_context *ldb,
                           TALLOC_CTX *mem_ctx,
-                          struct ldb_result **_res,
+                          struct ldb_result **_result,
                           const struct GUID *guid,
                           const char * const *attrs,
                           uint32_t dsdb_flags)
@@ -3915,7 +3915,7 @@ int dsdb_search_by_dn_guid(struct ldb_context *ldb,
                return ldb_oom(ldb);
        }
 
-       ret = dsdb_search_dn(ldb, mem_ctx, _res, dn, attrs, dsdb_flags);
+       ret = dsdb_search_dn(ldb, mem_ctx, _result, dn, attrs, dsdb_flags);
        talloc_free(tmp_ctx);
        return ret;
 }
@@ -3925,7 +3925,7 @@ int dsdb_search_by_dn_guid(struct ldb_context *ldb,
  */
 int dsdb_search(struct ldb_context *ldb,
                TALLOC_CTX *mem_ctx,
-               struct ldb_result **_res,
+               struct ldb_result **_result,
                struct ldb_dn *basedn,
                enum ldb_scope scope,
                const char * const *attrs,
@@ -4003,7 +4003,7 @@ int dsdb_search(struct ldb_context *ldb,
                }
        }
 
-       *_res = talloc_steal(mem_ctx, res);
+       *_result = talloc_steal(mem_ctx, res);
        talloc_free(tmp_ctx);
 
        return LDB_SUCCESS;