mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
smbd: Simplify init_smb_file_time
Call make_omit_timespec just once, saves a few .text bytes Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
e5a304193b
commit
e94de8a4af
@ -1190,11 +1190,13 @@ NTSTATUS vfs_stat_fsp(files_struct *fsp)
|
||||
|
||||
void init_smb_file_time(struct smb_file_time *ft)
|
||||
{
|
||||
struct timespec omit = make_omit_timespec();
|
||||
|
||||
*ft = (struct smb_file_time) {
|
||||
.atime = make_omit_timespec(),
|
||||
.ctime = make_omit_timespec(),
|
||||
.mtime = make_omit_timespec(),
|
||||
.create_time = make_omit_timespec()
|
||||
.atime = omit,
|
||||
.ctime = omit,
|
||||
.mtime = omit,
|
||||
.create_time = omit,
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user