]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/libsmb: Convert build_fs_quota_buffer() to use PUSH_LE_U64
authorAnoop C S <anoopcs@samba.org>
Sun, 1 Mar 2026 05:42:21 +0000 (11:12 +0530)
committerMartin Schwenke <martins@samba.org>
Sun, 1 Mar 2026 10:15:29 +0000 (10:15 +0000)
Signed-off-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
source3/libsmb/cliquota.c

index 544d1be67df0c63c0efd861ab412acc7a6da4963..0f38c2757922266273fb75b9271c531a0f9601d9 100644 (file)
@@ -225,15 +225,15 @@ NTSTATUS build_fs_quota_buffer(TALLOC_CTX *mem_ctx,
        buf = blob->data;
 
        /* Unknown1 24 NULL bytes*/
-       SBIG_UINT(buf, 0, (uint64_t)0);
-       SBIG_UINT(buf, 8, (uint64_t)0);
-       SBIG_UINT(buf, 16, (uint64_t)0);
+       PUSH_LE_U64(buf, 0, 0);
+       PUSH_LE_U64(buf, 8, 0);
+       PUSH_LE_U64(buf, 16, 0);
 
        /* Default Soft Quota 8 bytes */
-       SBIG_UINT(buf, 24, pqt->softlim);
+       PUSH_LE_U64(buf, 24, pqt->softlim);
 
        /* Default Hard Quota 8 bytes */
-       SBIG_UINT(buf, 32, pqt->hardlim);
+       PUSH_LE_U64(buf, 32, pqt->hardlim);
 
        /* Quota flag 4 bytes */
        SIVAL(buf, 40, pqt->qflags);