SDL_net: WinSock `write` implementation should take a `const void *` buffer, not `char`.

From 8c9e0274005c694e3ca7406c05aa1b5cef227926 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Wed, 27 Sep 2023 12:57:54 -0400
Subject: [PATCH] WinSock `write` implementation should take a `const void *`
 buffer, not `char`.

Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
---
 src/SDL_net.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/SDL_net.c b/src/SDL_net.c
index f17c412..86ddf7a 100644
--- a/src/SDL_net.c
+++ b/src/SDL_net.c
@@ -10,8 +10,8 @@ typedef SOCKET Socket;
 typedef int SockLen;
 typedef SOCKADDR_STORAGE AddressStorage;
 
-static int write(SOCKET s, const char *buf, size_t count) {
-    return send(s, buf, count, 0);
+static int write(SOCKET s, const void *buf, size_t count) {
+    return send(s, (const char *)buf, count, 0);
 }
 
 static int read(SOCKET s, char *buf, size_t count) {