[Bug 293667] sysutils/symon: Fix build on 32 bit machines

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 08 Mar 2026 15:55:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293667

--- Comment #3 from Vladimir Druzenko <vvd@FreeBSD.org> ---
I simplified the patch for the port a bit:
--- symon/symonnet.c.orig       2025-01-03 13:36:33 UTC
+++ symon/symonnet.c
@@ -70,9 +70,11 @@ send_packet(struct mux * mux)
 void
 send_packet(struct mux * mux)
 {
-    if (sendto(mux->symuxsocket, mux->packet.data,
+    ssize_t sent = sendto(mux->symuxsocket, mux->packet.data,
                mux->packet.offset, 0, (struct sockaddr *) & mux->sockaddr,
                SS_LEN(&mux->sockaddr))
+    ;
+    if (sent < 0 || (size_t)sent
         != mux->packet.offset) {
         mux->senderr++;
     }

-- 
You are receiving this mail because:
You are the assignee for the bug.