1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-29 02:50:28 +03:00

source3/smbd/statcache.c: Fix -Wformat build error on macOS

The format string uses PRIx64, so we should be using uint64_t and not
uintmax_t.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14862

Signed-off-by: Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Alex Richardson 2021-09-08 13:29:54 +01:00 committed by Jeremy Allison
parent 6dadf251fc
commit 1d893f7232

View File

@ -425,7 +425,7 @@ void stat_cache_delete(const char *name)
lname = talloc_asprintf(talloc_tos(),
STAT_CACHE_TWRP_TOKEN,
(uintmax_t)0,
(uint64_t)0,
upper);
TALLOC_FREE(upper);
if (lname == NULL) {