diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-03-28 12:35:09 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-04-05 02:39:08 +0200 |
commit | 5c89d12ca43e7949ace93c75ce59ca9fc0606521 (patch) | |
tree | d08c0610644be2b67b66b32cb3f92cb91c2525ab /source3/lib | |
parent | e1b7a5c750cf1dc09d7e14909234c7079ee9fabf (diff) | |
download | samba-5c89d12ca43e7949ace93c75ce59ca9fc0606521.tar.gz samba-5c89d12ca43e7949ace93c75ce59ca9fc0606521.tar.bz2 samba-5c89d12ca43e7949ace93c75ce59ca9fc0606521.zip |
build: Remove sys_ftruncate wrapper
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/dbwrap/dbwrap_file.c | 4 | ||||
-rw-r--r-- | source3/lib/system.c | 9 |
2 files changed, 2 insertions, 11 deletions
diff --git a/source3/lib/dbwrap/dbwrap_file.c b/source3/lib/dbwrap/dbwrap_file.c index f7d207be7f..8e513b5ad2 100644 --- a/source3/lib/dbwrap/dbwrap_file.c +++ b/source3/lib/dbwrap/dbwrap_file.c @@ -209,8 +209,8 @@ static NTSTATUS db_file_store_root(int fd, TDB_DATA data) return map_nt_error_from_unix(errno); } - if (sys_ftruncate(fd, data.dsize) != 0) { - DEBUG(3, ("sys_ftruncate failed: %s\n", strerror(errno))); + if (ftruncate(fd, data.dsize) != 0) { + DEBUG(3, ("ftruncate failed: %s\n", strerror(errno))); return map_nt_error_from_unix(errno); } diff --git a/source3/lib/system.c b/source3/lib/system.c index feb745306a..1e2c30db2f 100644 --- a/source3/lib/system.c +++ b/source3/lib/system.c @@ -585,15 +585,6 @@ int sys_fallocate(int fd, enum vfs_fallocate_mode mode, SMB_OFF_T offset, SMB_OF } /******************************************************************* - An ftruncate() wrapper. -********************************************************************/ - -int sys_ftruncate(int fd, SMB_OFF_T offset) -{ - return ftruncate(fd, offset); -} - -/******************************************************************* An lseek() wrapper. ********************************************************************/ |