summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@samba.org>2017-12-05 13:16:31 +0100
committerRalph Boehme <slow@samba.org>2017-12-05 23:43:20 +0100
commitc39d3fcb58759884613913e05e6f606bdbdf5ec3 (patch)
tree1d47b0247c3c69a68038f98ca2ae9d8f4c1c4158 /source3/include
parent75a8709821cbc6df8c2f1fe30f291091ff77ca87 (diff)
downloadsamba-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.h2
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) \