diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-07-30 16:36:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:25 -0500 |
commit | e23781b3b304d1e69ad80af5ae9c0ed8d02cf996 (patch) | |
tree | d3a6eb0774d9ce907152e886c4c920d24ac2d715 /source3/lib/data_blob.c | |
parent | 5a5deade6e4634aad561139f39337c9a960c0b80 (diff) | |
download | samba-e23781b3b304d1e69ad80af5ae9c0ed8d02cf996.tar.gz |
r17316: More C++ warnings -- 456 left
(This used to be commit 1e4ee728df7eeafc1b4d533240acb032f73b4f5c)
Diffstat (limited to 'source3/lib/data_blob.c')
-rw-r--r-- | source3/lib/data_blob.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/data_blob.c b/source3/lib/data_blob.c index 860ef5ad10f..4d5dda24359 100644 --- a/source3/lib/data_blob.c +++ b/source3/lib/data_blob.c @@ -47,9 +47,9 @@ DATA_BLOB data_blob(const void *p, size_t length) } if (p) { - ret.data = smb_xmemdup(p, length); + ret.data = (uint8 *)smb_xmemdup(p, length); } else { - ret.data = SMB_XMALLOC_ARRAY(unsigned char, length); + ret.data = SMB_XMALLOC_ARRAY(uint8, length); } ret.length = length; ret.free = free_data_blob; @@ -70,11 +70,11 @@ DATA_BLOB data_blob_talloc(TALLOC_CTX *mem_ctx, const void *p, size_t length) } if (p) { - ret.data = TALLOC_MEMDUP(mem_ctx, p, length); + ret.data = (uint8 *)TALLOC_MEMDUP(mem_ctx, p, length); if (ret.data == NULL) smb_panic("data_blob_talloc: talloc_memdup failed.\n"); } else { - ret.data = TALLOC(mem_ctx, length); + ret.data = (uint8 *)TALLOC(mem_ctx, length); if (ret.data == NULL) smb_panic("data_blob_talloc: talloc failed.\n"); } |