s3:vfs: Fix the build of vfs_tsmsm after the VFS rewrite
authorVolker Lendecke <vl@samba.org>
Thu, 17 Sep 2009 00:06:30 +0000 (02:06 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 17 Sep 2009 00:07:11 +0000 (02:07 +0200)
source3/modules/vfs_tsmsm.c

index b5104329e1bca1a649e8b6343c0f6824e6e4bf30..7c63b8c20e837e5c5df2262f6d0f92c776758a47 100644 (file)
@@ -314,7 +314,7 @@ static ssize_t tsmsm_pread(struct vfs_handle_struct *handle, struct files_struct
 }
 
 static ssize_t tsmsm_pwrite(struct vfs_handle_struct *handle, struct files_struct *fsp, 
-                          void *data, size_t n, SMB_OFF_T offset) {
+                           const void *data, size_t n, SMB_OFF_T offset) {
        ssize_t result;
        bool notify_online = tsmsm_aio_force(handle, fsp);
 
@@ -367,7 +367,7 @@ static struct vfs_fn_pointers tsmsm_fns = {
        .connect_fn = tsmsm_connect,
        .fs_capabilities = tsmsm_fs_capabilities,
        .aio_force = tsmsm_aio_force,
-       .aio_return = tsmsm_aio_return,
+       .aio_return_fn = tsmsm_aio_return,
        .pread = tsmsm_pread,
        .pwrite = tsmsm_pwrite,
        .sendfile = tsmsm_sendfile,
@@ -379,5 +379,5 @@ NTSTATUS vfs_tsmsm_init(void);
 NTSTATUS vfs_tsmsm_init(void)
 {
        return smb_register_vfs(SMB_VFS_INTERFACE_VERSION,
-                               "tsmsm", &vfs_fns);
+                               "tsmsm", &tsmsm_fns);
 }