From: David Disseldorp Date: Tue, 5 Dec 2017 12:16:31 +0000 (+0100) Subject: vfs: return type via VFS_ADD_FSP_EXTENSION X-Git-Tag: talloc-2.1.11~288 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c39d3fcb58759884613913e05e6f606bdbdf5ec3;p=thirdparty%2Fsamba.git 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 Reviewed-by: Ralph Boehme --- 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) \