Remove redundant parameter fd from SMB_VFS_FTRUNCATE().
[samba.git] / source3 / modules / vfs_prealloc.c
index cebf3a3933747a1281813ae6e67e2bbdbfbde0b9..2d64bc0184ded75357642f30c1881eb52e983fe4 100644 (file)
@@ -184,11 +184,10 @@ normal_open:
 
 static int prealloc_ftruncate(vfs_handle_struct * handle,
                        files_struct *  fsp,
-                       int             fd,
                        SMB_OFF_T       offset)
 {
        SMB_OFF_T *psize;
-       int ret = SMB_VFS_NEXT_FTRUNCATE(handle, fsp, fd, offset);
+       int ret = SMB_VFS_NEXT_FTRUNCATE(handle, fsp, offset);
 
        /* Maintain the allocated space even in the face of truncates. */
        if ((psize = VFS_FETCH_FSP_EXTENSION(handle, fsp))) {