Saves .text bytes with -O3
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
START_PROFILE(SMBsetatr);
- ZERO_STRUCT(ft);
-
if (req->wct < 2) {
reply_nterror(req, NT_STATUS_INVALID_PARAMETER);
goto out;
}
}
- ft.mtime = convert_time_t_to_timespec(mtime);
+ ft = (struct smb_file_time) {
+ .mtime = convert_time_t_to_timespec(mtime)
+ };
+
status = smb_set_file_time(conn, NULL, smb_fname, &ft, true);
if (!NT_STATUS_IS_OK(status)) {
reply_nterror(req, status);