SDL_net: reverted commit 7f0e7c57a7 for SDL_main compatibility..

From 091c95c031769f48d3ffaacddfdea1af999f4446 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Mon, 10 Oct 2022 04:20:04 +0300
Subject: [PATCH] reverted commit 7f0e7c57a7 for SDL_main compatibility..

---
 chatd.c          | 6 +++++-
 showinterfaces.c | 7 +++++--
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/chatd.c b/chatd.c
index 672c77c..1753cb8 100644
--- a/chatd.c
+++ b/chatd.c
@@ -190,11 +190,14 @@ static void cleanup(int exitcode)
 	exit(exitcode);
 }
 
-int main(void)
+int main(int argc, char *argv[])
 {
 	IPaddress serverIP;
 	int i;
 
+	(void) argc;
+	(void) argv;
+
 	/* Initialize SDL */
 	if ( SDL_Init(0) < 0 ) {
 		fprintf(stderr, "Couldn't initialize SDL: %s\n",SDL_GetError());
@@ -255,3 +258,4 @@ int main(void)
 	/* Not reached, but fixes compiler warnings */
 	return 0;
 }
+
diff --git a/showinterfaces.c b/showinterfaces.c
index 67842ab..c1a93c5 100644
--- a/showinterfaces.c
+++ b/showinterfaces.c
@@ -22,14 +22,17 @@
 
 #define MAX_ADDRESSES	10
 
-int main(void)
+int main(int argc, char *argv[])
 {
 	IPaddress addresses[MAX_ADDRESSES];
 	int i, count;
 
+	(void) argc;
+	(void) argv;
+
 	count = SDLNet_GetLocalAddresses(addresses, MAX_ADDRESSES);
 	printf("Found %d local addresses\n", count);
-	for ( i = 0; i < count; ++i ) {
+	for (i = 0; i < count; ++i) {
 		printf("%d: %d.%d.%d.%d - %s\n", i+1,
 			(addresses[i].host >> 0) & 0xFF,
 			(addresses[i].host >> 8) & 0xFF,