summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-03-07 03:53:11 -0800
committerJeremy Allison <jra@samba.org>2011-03-07 13:39:16 +0100
commit286b22cb9ad36d4c39b7024947f890b3cf47215d (patch)
treef444c285c09d7f2258663ffcce850b0dd8f1da85 /examples
parent233c8bca3bfda4d09d458b842873621a7ffe5e91 (diff)
downloadsamba-286b22cb9ad36d4c39b7024947f890b3cf47215d.tar.gz
samba-286b22cb9ad36d4c39b7024947f890b3cf47215d.tar.bz2
samba-286b22cb9ad36d4c39b7024947f890b3cf47215d.zip
Fix examples/VFS to use correct prototypes for is_offline() and set_offline().
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Mar 7 13:39:17 CET 2011 on sn-devel-104
Diffstat (limited to 'examples')
-rw-r--r--examples/VFS/skel_opaque.c4
-rw-r--r--examples/VFS/skel_transparent.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c
index da126e3c0a..c7350e2810 100644
--- a/examples/VFS/skel_opaque.c
+++ b/examples/VFS/skel_opaque.c
@@ -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;
diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c
index 0ffdc11b21..ed55c20fb8 100644
--- a/examples/VFS/skel_transparent.c
+++ b/examples/VFS/skel_transparent.c
@@ -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 */