diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-02-13 11:35:17 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-02-13 13:44:36 +0100 |
commit | 66b2604ef185228bb2ec5b5b0983ea39b55cd17c (patch) | |
tree | bc6e34ef25f3d4e454221e0e4ce4a9abafc09556 /source4 | |
parent | abb96e202b93f044d39b4ed17422248e8c721811 (diff) | |
download | samba-66b2604ef185228bb2ec5b5b0983ea39b55cd17c.tar.gz samba-66b2604ef185228bb2ec5b5b0983ea39b55cd17c.tar.bz2 samba-66b2604ef185228bb2ec5b5b0983ea39b55cd17c.zip |
s4:ntvfs_generic: use talloc_get_type() to remote compiler warnings
metze
Diffstat (limited to 'source4')
-rw-r--r-- | source4/ntvfs/ntvfs_generic.c | 8 |
1 files changed, 5 insertions, 3 deletions
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) { |