SDL_net: Updated for SDL3 change to use SDL_bool instead of int return code

From 543ef69168248cf90889543f13c66b92bfac1dfd Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 27 Aug 2024 12:19:43 -0700
Subject: [PATCH] Updated for SDL3 change to use SDL_bool instead of int return
 code

---
 cmake/test/main.c   | 2 +-
 examples/voipchat.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmake/test/main.c b/cmake/test/main.c
index 1ba49e9..fcd462b 100644
--- a/cmake/test/main.c
+++ b/cmake/test/main.c
@@ -4,7 +4,7 @@
 
 int main(int argc, char *argv[])
 {
-    if (SDL_Init(0) < 0) {
+    if (!SDL_Init(0)) {
         SDL_Log("SDL_Init(0) failed: %s", SDL_GetError());
         return 1;
     }
diff --git a/examples/voipchat.c b/examples/voipchat.c
index 1739b45..baa7942 100644
--- a/examples/voipchat.c
+++ b/examples/voipchat.c
@@ -195,7 +195,7 @@ static void mainloop(void)
 
                 case SDL_EVENT_MOUSE_BUTTON_DOWN:
                     if (is_client && capture_stream && (event.button.button == SDL_BUTTON_LEFT)) {
-                        if (SDL_BindAudioStream(capture_device, capture_stream) == 0) {
+                        if (SDL_BindAudioStream(capture_device, capture_stream)) {
                             SDL_SetRenderDrawColor(renderer, 0, 255, 0, 255);  /* green when recording */
                         }
                     }
@@ -344,7 +344,7 @@ static void run_voipchat(int argc, char **argv)
 
 int main(int argc, char **argv)
 {
-    if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) < 0) {
+    if (!SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO)) {
         SDL_Log("SDL_Init failed: %s\n", SDL_GetError());
         return 1;
     }