diff options
author | Gerald Carter <jerry@samba.org> | 2004-01-06 19:57:14 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2004-01-06 19:57:14 +0000 |
commit | d86628d0628a064f58e3ce9fbaf55ad9d5a92540 (patch) | |
tree | 31cefe696e17647bfde3b132bbc5c991944cfc38 /source3/smbd/fileio.c | |
parent | b6acba72cd8b3b35273723b38d801479e1a6fbf7 (diff) | |
download | samba-d86628d0628a064f58e3ce9fbaf55ad9d5a92540.tar.gz |
remove unused seek_file(); don't hardcode '\' when printing the auth-user
(This used to be commit fac5e05ca1b56cb6e3ab6537d0848fa373c00831)
Diffstat (limited to 'source3/smbd/fileio.c')
-rw-r--r-- | source3/smbd/fileio.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/source3/smbd/fileio.c b/source3/smbd/fileio.c index f395954d053..3462a3b9fa5 100644 --- a/source3/smbd/fileio.c +++ b/source3/smbd/fileio.c @@ -25,31 +25,6 @@ static BOOL setup_write_cache(files_struct *, SMB_OFF_T); /**************************************************************************** - Seek a file. Try to avoid the seek if possible. -****************************************************************************/ - -static SMB_OFF_T seek_file(files_struct *fsp,SMB_OFF_T pos) -{ - SMB_OFF_T seek_ret; - - seek_ret = SMB_VFS_LSEEK(fsp,fsp->fd,pos,SEEK_SET); - - if(seek_ret == -1) { - DEBUG(0,("seek_file: (%s) sys_lseek failed. Error was %s\n", - fsp->fsp_name, strerror(errno) )); - fsp->pos = -1; - return -1; - } - - fsp->pos = seek_ret; - - DEBUG(10,("seek_file (%s): requested pos = %.0f, new pos = %.0f\n", - fsp->fsp_name, (double)pos, (double)fsp->pos )); - - return(fsp->pos); -} - -/**************************************************************************** Read from write cache if we can. ****************************************************************************/ |