From 3210a476480ebd58cb7d5ae18c0c42bea3c4a7c1 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Thu, 14 May 2026 23:45:50 -0400
Subject: [PATCH] voipchat: Fixed small logic issue.
---
examples/voipchat.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/examples/voipchat.c b/examples/voipchat.c
index 93bd0598..adfd9468 100644
--- a/examples/voipchat.c
+++ b/examples/voipchat.c
@@ -116,9 +116,8 @@ static void mainloop(void)
const Uint64 now = SDL_GetTicks();
SDL_Event event;
NET_Datagram *dgram = NULL;
- int rc;
- while (((rc = NET_ReceiveDatagram(sock, &dgram)) == true) && (dgram != NULL)) {
+ while ((NET_ReceiveDatagram(sock, &dgram)) && (dgram != NULL)) {
SDL_Log("%s: got %d-byte datagram from %s:%d", is_client ? "CLIENT" : "SERVER", (int) dgram->buflen, NET_GetAddressString(dgram->addr), (int) dgram->port);
activity = true;
if (!is_client) { /* we're the server? */