diff options
author | Tim Prouty <tprouty@samba.org> | 2009-07-02 10:27:01 -0700 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2009-07-06 15:38:41 -0700 |
commit | 18a27a8df223ba8eb0faf6a64384acce174f3ace (patch) | |
tree | d57bbf2825951eb7b5a8883b0f2733bd1ce74958 /source3/smbd | |
parent | 99bd4fda0cd97eb211549a511a2ff6153c2bde2d (diff) | |
download | samba-18a27a8df223ba8eb0faf6a64384acce174f3ace.tar.gz samba-18a27a8df223ba8eb0faf6a64384acce174f3ace.tar.bz2 samba-18a27a8df223ba8eb0faf6a64384acce174f3ace.zip |
s3 sticky write time: Removed unused args and tighten up a function by making an arg const
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/dosmode.c | 7 | ||||
-rw-r--r-- | source3/smbd/trans2.c | 5 |
2 files changed, 5 insertions, 7 deletions
diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c index 2006b75d52..97d788218d 100644 --- a/source3/smbd/dosmode.c +++ b/source3/smbd/dosmode.c @@ -791,8 +791,8 @@ int file_ntimes(connection_struct *conn, const char *fname, returned on all future write time queries and set on close. ******************************************************************/ -bool set_sticky_write_time_path(connection_struct *conn, const char *fname, - struct file_id fileid, const struct timespec mtime) +bool set_sticky_write_time_path(const struct file_id fileid, + const struct timespec mtime) { if (null_timespec(mtime)) { return true; @@ -815,8 +815,7 @@ bool set_sticky_write_time_fsp(struct files_struct *fsp, const struct timespec m fsp->write_time_forced = true; TALLOC_FREE(fsp->update_write_time_event); - return set_sticky_write_time_path(fsp->conn, fsp->fsp_name, - fsp->file_id, mtime); + return set_sticky_write_time_path(fsp->file_id, mtime); } /****************************************************************** diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 2c74c8f49e..e93d313821 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -5009,9 +5009,8 @@ NTSTATUS smb_set_file_time(connection_struct *conn, set_sticky_write_time_fsp(fsp, ft->mtime); } } else { - set_sticky_write_time_path(conn, fname, - vfs_file_id_from_sbuf(conn, psbuf), - ft->mtime); + set_sticky_write_time_path( + vfs_file_id_from_sbuf(conn, psbuf), ft->mtime); } } |