diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-04-17 14:47:07 +0200 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2008-04-17 14:47:07 +0200 |
commit | 107ab090e23dfc517bc74bb553315cd3528e1f7d (patch) | |
tree | 6df824780f4942ec8ce037a21da0d5cce6272773 /source4/lib/ldb/ldb_tdb | |
parent | 769ebe91711330d5b75f9632c2b1d1847dd32a15 (diff) | |
download | samba-107ab090e23dfc517bc74bb553315cd3528e1f7d.tar.gz samba-107ab090e23dfc517bc74bb553315cd3528e1f7d.tar.bz2 samba-107ab090e23dfc517bc74bb553315cd3528e1f7d.zip |
use uintptr_t instead of intptr_t where appropriate
(This used to be commit d62f2bcc85c13605c133db250e0a86d2d6ccc481)
Diffstat (limited to 'source4/lib/ldb/ldb_tdb')
-rw-r--r-- | source4/lib/ldb/ldb_tdb/ldb_index.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_index.c b/source4/lib/ldb/ldb_tdb/ldb_index.c index d8776f48e2..1b6d9feed6 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_index.c +++ b/source4/lib/ldb/ldb_tdb/ldb_index.c @@ -545,7 +545,7 @@ static int ltdb_index_dn_one(struct ldb_module *module, /* the attribute is indexed. Pull the list of DNs that match the search criterion */ - val.data = (uint8_t *)((intptr_t)ldb_dn_get_casefold(parent_dn)); + val.data = (uint8_t *)((uintptr_t)ldb_dn_get_casefold(parent_dn)); val.length = strlen((char *)val.data); key = ltdb_index_key(ldb, LTDB_IDXONE, &val); if (!key) { @@ -1140,7 +1140,7 @@ int ltdb_index_one(struct ldb_module *module, const struct ldb_message *msg, int return LDB_ERR_OPERATIONS_ERROR; } - val.data = (uint8_t *)((intptr_t)ldb_dn_get_casefold(pdn)); + val.data = (uint8_t *)((uintptr_t)ldb_dn_get_casefold(pdn)); if (val.data == NULL) { talloc_free(pdn); return LDB_ERR_OPERATIONS_ERROR; |