build: Remove sys_ftell wrapper
authorAndrew Bartlett <abartlet@samba.org>
Wed, 28 Mar 2012 01:38:31 +0000 (12:38 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 5 Apr 2012 00:39:08 +0000 (02:39 +0200)
source3/include/proto.h
source3/lib/system.c
source3/passdb/pdb_smbpasswd.c

index b3ab9714e662fab4790a572427faf56d3e35d7e9..ccda53faea7053e052b61ad2a43958110e738283 100644 (file)
@@ -336,7 +336,6 @@ int sys_lstat(const char *fname,SMB_STRUCT_STAT *sbuf,
              bool fake_dir_create_times);
 int sys_posix_fallocate(int fd, SMB_OFF_T offset, SMB_OFF_T len);
 int sys_fallocate(int fd, enum vfs_fallocate_mode mode, SMB_OFF_T offset, SMB_OFF_T len);
-SMB_OFF_T sys_ftell(FILE *fp);
 int sys_creat(const char *path, mode_t mode);
 int sys_open(const char *path, int oflag, mode_t mode);
 FILE *sys_fopen(const char *path, const char *type);
index 08d13e6f2bff0682d5b296151c80c831b77d6934..fab87da182f2ffe828a3c7e31394f9ffb0cc7c3b 100644 (file)
@@ -584,15 +584,6 @@ int sys_fallocate(int fd, enum vfs_fallocate_mode mode, SMB_OFF_T offset, SMB_OF
 #endif
 }
 
-/*******************************************************************
- An ftell() wrapper.
-********************************************************************/
-
-SMB_OFF_T sys_ftell(FILE *fp)
-{
-       return (SMB_OFF_T)ftell(fp);
-}
-
 /*******************************************************************
  A creat() wrapper.
 ********************************************************************/
index 4c7ff57f6cc05d0f1e0b38dee35ee6d914e5036e..71b21fbb28fae0d4c14b74b27f029e5cd5625803 100644 (file)
@@ -788,7 +788,7 @@ static bool mod_smbfilepwd_entry(struct smbpasswd_privates *smbpasswd_state, con
         */
        status = linebuf;
        while (status && !feof(fp)) {
-               pwd_seekpos = sys_ftell(fp);
+               pwd_seekpos = ftell(fp);
 
                linebuf[0] = '\0';