From: Volker Lendecke Date: Wed, 4 Dec 2024 11:42:00 +0000 (+0100) Subject: smbd: Avoid a (double) cast X-Git-Tag: tdb-1.4.13~312 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=69d74563add41bee79c9bdd59b7df0a80953b4b8;p=thirdparty%2Fsamba.git smbd: Avoid a (double) cast We don't need floating point here, intmax_t and %jd should be sufficient Signed-off-by: Volker Lendecke Reviewed-by: Pavel Filipenský --- diff --git a/source3/smbd/smb1_trans2.c b/source3/smbd/smb1_trans2.c index dff7bf521f3..8b29e2f888f 100644 --- a/source3/smbd/smb1_trans2.c +++ b/source3/smbd/smb1_trans2.c @@ -3971,9 +3971,9 @@ static NTSTATUS smb_set_file_unix_basic(connection_struct *conn, } DBG_DEBUG("SMB_SET_FILE_UNIX_BASIC: name = " - "%s size = %.0f, uid = %u, gid = %u, raw perms = 0%o\n", + "%s size = %jd, uid = %u, gid = %u, raw perms = 0%o\n", smb_fname_str_dbg(smb_fname), - (double)size, + (intmax_t)size, (unsigned int)set_owner, (unsigned int)set_grp, (int)raw_unixmode);