1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

vfs: return type via VFS_ADD_FSP_EXTENSION

The type is passed in as a parameter, so should be used to properly type
the returned pointer, instead of using a void *.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
David Disseldorp 2017-12-05 13:16:31 +01:00 committed by Ralph Boehme
parent 75a8709821
commit c39d3fcb58

View File

@ -1042,7 +1042,7 @@ typedef struct vfs_statvfs_struct {
* extenstion data.
*/
#define VFS_ADD_FSP_EXTENSION(handle, fsp, type, destroy_fn) \
vfs_add_fsp_extension_notype(handle, (fsp), sizeof(type), (destroy_fn))
(type *)vfs_add_fsp_extension_notype(handle, (fsp), sizeof(type), (destroy_fn))
/* Return a pointer to the existing FSP extension data. */
#define VFS_FETCH_FSP_EXTENSION(handle, fsp) \