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:
parent
75a8709821
commit
c39d3fcb58
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user