Fix examples/VFS to use correct prototypes for is_offline() and set_offline().
authorJeremy Allison <jra@samba.org>
Mon, 7 Mar 2011 11:53:11 +0000 (03:53 -0800)
committerJeremy Allison <jra@samba.org>
Mon, 7 Mar 2011 12:39:16 +0000 (13:39 +0100)
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Mar  7 13:39:17 CET 2011 on sn-devel-104

examples/VFS/skel_opaque.c
examples/VFS/skel_transparent.c

index da126e3c0aca2c87c6061f25f42cb5ebe1f64d26..c7350e2810e108baaf96d903d16388b6eded7ed9 100644 (file)
@@ -760,13 +760,13 @@ static bool skel_aio_force(struct vfs_handle_struct *handle, struct files_struct
        return false;
 }
 
-static bool skel_is_offline(struct vfs_handle_struct *handle, const char *path, SMB_STRUCT_STAT *sbuf)
+static bool skel_is_offline(struct vfs_handle_struct *handle, const struct smb_filename *fname, SMB_STRUCT_STAT *sbuf)
 {
        errno = ENOSYS;
        return false;
 }
 
-static int skel_set_offline(struct vfs_handle_struct *handle, const char *path)
+static int skel_set_offline(struct vfs_handle_struct *handle, const struct smb_filename *fname)
 {
        errno = ENOSYS;
        return -1;
index 0ffdc11b2114ac88c97249c989521ca76454afcc..ed55c20fb8e436e99e45bd11302a45d2dd90d550 100644 (file)
@@ -706,14 +706,14 @@ static bool skel_aio_force(struct vfs_handle_struct *handle, struct files_struct
         return SMB_VFS_NEXT_AIO_FORCE(handle, fsp);
 }
 
-static bool skel_is_offline(struct vfs_handle_struct *handle, const char *path, SMB_STRUCT_STAT *sbuf)
+static bool skel_is_offline(struct vfs_handle_struct *handle, const struct smb_filename *fname, SMB_STRUCT_STAT *sbuf)
 {
-       return SMB_VFS_NEXT_IS_OFFLINE(handle, path, sbuf);
+       return SMB_VFS_NEXT_IS_OFFLINE(handle, fname, sbuf);
 }
 
-static int skel_set_offline(struct vfs_handle_struct *handle, const char *path)
+static int skel_set_offline(struct vfs_handle_struct *handle, const struct smb_filename *fname)
 {
-       return SMB_VFS_NEXT_SET_OFFLINE(handle, path);
+       return SMB_VFS_NEXT_SET_OFFLINE(handle, fname);
 }
 
 /* VFS operations structure */