diff options
author | David Disseldorp <ddiss@samba.org> | 2017-12-05 13:16:31 +0100 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2017-12-05 23:43:20 +0100 |
commit | c39d3fcb58759884613913e05e6f606bdbdf5ec3 (patch) | |
tree | 1d47b0247c3c69a68038f98ca2ae9d8f4c1c4158 /source3/include | |
parent | 75a8709821cbc6df8c2f1fe30f291091ff77ca87 (diff) | |
download | samba-c39d3fcb58759884613913e05e6f606bdbdf5ec3.tar.gz |
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>
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/vfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/include/vfs.h b/source3/include/vfs.h index 7372440d38a..a2017498d3f 100644 --- a/source3/include/vfs.h +++ b/source3/include/vfs.h @@ -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) \ |