Fix a C++ warning
authorVolker Lendecke <vl@samba.org>
Thu, 20 Dec 2007 19:59:44 +0000 (20:59 +0100)
committerVolker Lendecke <vl@samba.org>
Fri, 21 Dec 2007 08:58:20 +0000 (09:58 +0100)
(This used to be commit 7e1d9b561f6df233b8c7eaec83d1e4207b5a2fb0)

source3/smbd/vfs.c

index 96d71da8d926b020e786caa8248fa7cc90d7bdc1..fefae38932ec79c23b9d8c2e5f937f6153cac97d 100644 (file)
@@ -280,7 +280,7 @@ void *vfs_fetch_fsp_extension(vfs_handle_struct *handle, files_struct *fsp)
 {
        struct vfs_fsp_data *head;
 
-       head = vfs_memctx_fsp_extension(handle, fsp);
+       head = (struct vfs_fsp_data *)vfs_memctx_fsp_extension(handle, fsp);
        if (head != NULL) {
                return EXT_DATA_AREA(head);
        }