The branch main has been updated by des:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=4982db387fc85a13f1da39462fe1b83bec0c1248

commit 4982db387fc85a13f1da39462fe1b83bec0c1248
Author:     Dag-Erling Smørgrav <d...@freebsd.org>
AuthorDate: 2025-07-09 20:42:10 +0000
Commit:     Dag-Erling Smørgrav <d...@freebsd.org>
CommitDate: 2025-07-09 20:42:10 +0000

    pfctl: Fix 32-bit build.
    
    Fixes:          19973701098c8
    Reviewed by:    kp
    Differential Revision:  https://reviews.freebsd.org/D51230
---
 sbin/pfctl/pfctl_parser.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c
index 29d51214e2e5..bd2c10c8080f 100644
--- a/sbin/pfctl/pfctl_parser.c
+++ b/sbin/pfctl/pfctl_parser.c
@@ -368,8 +368,8 @@ print_ugid(u_int8_t op, id_t i1, id_t i2, const char *t)
 {
        char    a1[11], a2[11];
 
-       snprintf(a1, sizeof(a1), "%lu", i1);
-       snprintf(a2, sizeof(a2), "%lu", i2);
+       snprintf(a1, sizeof(a1), "%ju", (uintmax_t)i1);
+       snprintf(a2, sizeof(a2), "%ju", (uintmax_t)i2);
        printf(" %s", t);
        if (i1 == -1 && (op == PF_OP_EQ || op == PF_OP_NE))
                print_op(op, "unknown", a2);

Reply via email to