From 66b2604ef185228bb2ec5b5b0983ea39b55cd17c Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 13 Feb 2009 11:35:17 +0100 Subject: s4:ntvfs_generic: use talloc_get_type() to remote compiler warnings metze --- source4/ntvfs/ntvfs_generic.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'source4/ntvfs/ntvfs_generic.c') diff --git a/source4/ntvfs/ntvfs_generic.c b/source4/ntvfs/ntvfs_generic.c index b03d57166b..ad13f36c8a 100644 --- a/source4/ntvfs/ntvfs_generic.c +++ b/source4/ntvfs/ntvfs_generic.c @@ -56,7 +56,8 @@ struct ntvfs_map_async { */ static void ntvfs_map_async_send(struct ntvfs_request *req) { - struct ntvfs_map_async *m = req->async_states->private_data; + struct ntvfs_map_async *m = talloc_get_type(req->async_states->private_data, + struct ntvfs_map_async); ntvfs_async_state_pop(req); @@ -105,7 +106,8 @@ static NTSTATUS ntvfs_map_async_finish(struct ntvfs_request *req, NTSTATUS statu /* the backend is replying immediately. call the 2nd stage function after popping our local async state */ - m = req->async_states->private_data; + m = talloc_get_type(req->async_states->private_data, + struct ntvfs_map_async); ntvfs_async_state_pop(req); @@ -856,7 +858,7 @@ NTSTATUS ntvfs_map_fileinfo(TALLOC_CTX *mem_ctx, return NT_STATUS_NO_MEMORY; } info->all_eas.out.eas[i].value.data = - talloc_memdup(info->all_eas.out.eas, + (uint8_t *)talloc_memdup(info->all_eas.out.eas, info2->generic.out.eas[i].value.data, info2->generic.out.eas[i].value.length); if (!info->all_eas.out.eas[i].value.data) { -- cgit