]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Avoid a (double) cast
authorVolker Lendecke <vl@samba.org>
Wed, 4 Dec 2024 11:42:00 +0000 (12:42 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 17 Dec 2024 12:30:30 +0000 (12:30 +0000)
We don't need floating point here, intmax_t and %jd should be
sufficient

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
source3/smbd/smb1_trans2.c

index dff7bf521f3332b15b2b077b4df660cead623f40..8b29e2f888ff6297f42eeb9e46a19d114ca15005 100644 (file)
@@ -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);