summaryrefslogtreecommitdiff
path: root/examples/VFS
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-10 15:49:35 +0100
committerMichael Adam <obnox@samba.org>2008-01-10 15:49:35 +0100
commite9a3a62e7448bef72d9c17c90ff2b404082f067c (patch)
tree882a2c92c86ea112ece2611bd2b33d7b9662a4f2 /examples/VFS
parent1d66f4d58b5fdd9c4e0c022cd2724e05d144510b (diff)
downloadsamba-e9a3a62e7448bef72d9c17c90ff2b404082f067c.tar.gz
samba-e9a3a62e7448bef72d9c17c90ff2b404082f067c.tar.bz2
samba-e9a3a62e7448bef72d9c17c90ff2b404082f067c.zip
Remove redundant parameter fd from SMB_VFS_WRITE().
Michael (This used to be commit c8ae7d095a2a6a7eac920a68ca7244e3a423e1b1)
Diffstat (limited to 'examples/VFS')
-rw-r--r--examples/VFS/skel_opaque.c4
-rw-r--r--examples/VFS/skel_transparent.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c
index eda1ceb1d1..6b1f29b12d 100644
--- a/examples/VFS/skel_opaque.c
+++ b/examples/VFS/skel_opaque.c
@@ -140,9 +140,9 @@ static ssize_t skel_pread(vfs_handle_struct *handle, struct files_struct *fsp, v
return vfswrap_pread(NULL, fsp, data, n, offset);
}
-static ssize_t skel_write(vfs_handle_struct *handle, files_struct *fsp, int fd, const void *data, size_t n)
+static ssize_t skel_write(vfs_handle_struct *handle, files_struct *fsp, const void *data, size_t n)
{
- return vfswrap_write(NULL, fsp, fd, data, n);
+ return vfswrap_write(NULL, fsp, data, n);
}
ssize_t skel_pwrite(vfs_handle_struct *handle, struct files_struct *fsp, const void *data, size_t n, SMB_OFF_T offset)
diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c
index 7b09e3369c..c168b461ba 100644
--- a/examples/VFS/skel_transparent.c
+++ b/examples/VFS/skel_transparent.c
@@ -134,9 +134,9 @@ static ssize_t skel_pread(vfs_handle_struct *handle, files_struct *fsp, void *da
return SMB_VFS_NEXT_PREAD(handle, fsp, data, n, offset);
}
-static ssize_t skel_write(vfs_handle_struct *handle, files_struct *fsp, int fd, const void *data, size_t n)
+static ssize_t skel_write(vfs_handle_struct *handle, files_struct *fsp, const void *data, size_t n)
{
- return SMB_VFS_NEXT_WRITE(handle, fsp, fd, data, n);
+ return SMB_VFS_NEXT_WRITE(handle, fsp, data, n);
}
static ssize_t skel_pwrite(vfs_handle_struct *handle, files_struct *fsp, const void *data, size_t n, SMB_OFF_T offset)