diff options
author | Michael Adam <obnox@samba.org> | 2008-04-13 00:23:58 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-04-13 00:23:58 +0200 |
commit | 3aa565e790d559cb88d4a73287943b71eaf31967 (patch) | |
tree | 849fe5346272542dc6caaee20d8b144ce5d23e01 | |
parent | 98abf71ff525711bda177b4b8b64f0f43d872891 (diff) | |
download | samba-3aa565e790d559cb88d4a73287943b71eaf31967.tar.gz samba-3aa565e790d559cb88d4a73287943b71eaf31967.tar.bz2 samba-3aa565e790d559cb88d4a73287943b71eaf31967.zip |
dbwrap_tdb2: fix a C++ warning by making implicit cast explicit
Michael
(This used to be commit 18ced7e42072953a1968db15b0a344b54214b83d)
-rw-r--r-- | source3/lib/dbwrap_tdb2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/dbwrap_tdb2.c b/source3/lib/dbwrap_tdb2.c index cbcbe71d71..9f68ef4a7d 100644 --- a/source3/lib/dbwrap_tdb2.c +++ b/source3/lib/dbwrap_tdb2.c @@ -569,9 +569,9 @@ static void db_tdb2_queue_change(struct db_tdb2_ctx *db_ctx, const TDB_DATA key) } db_ctx->changes.keys = keys; - keys[db_ctx->changes.num_keys].data = talloc_memdup(keys, - key.dptr, - key.dsize); + keys[db_ctx->changes.num_keys].data = (uint8_t *)talloc_memdup(keys, + key.dptr, + key.dsize); if (!keys[db_ctx->changes.num_keys].data) { goto overflow; } |