From 7394f23f3d50b13d47a8bf91076af906381400d2 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Mon, 10 Oct 2022 03:37:24 +0300
Subject: [PATCH] argc and argv are not used in chatd and showinterfaces
programs.
---
chatd.c | 3 +--
showinterfaces.c | 4 ++--
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/chatd.c b/chatd.c
index c236ecb..f2aa0f1 100644
--- a/chatd.c
+++ b/chatd.c
@@ -190,7 +190,7 @@ static void cleanup(int exitcode)
exit(exitcode);
}
-int main(int argc, char *argv[])
+int main(void)
{
IPaddress serverIP;
int i;
@@ -261,4 +261,3 @@ int main(int argc, char *argv[])
/* Not reached, but fixes compiler warnings */
return 0;
}
-
diff --git a/showinterfaces.c b/showinterfaces.c
index 4b20eec..5485d74 100644
--- a/showinterfaces.c
+++ b/showinterfaces.c
@@ -22,14 +22,14 @@
#define MAX_ADDRESSES 10
-int main(int argc, char *argv[])
+int main(void)
{
IPaddress addresses[MAX_ADDRESSES];
int i, count;
count = SDLNet_GetLocalAddresses(addresses, MAX_ADDRESSES);
SDL_Log("Found %d local addresses", count);
- for ( i = 0; i < count; ++i ) {
+ for (i = 0; i < count; ++i) {
SDL_Log("%d: %d.%d.%d.%d - %s", i+1,
(addresses[i].host >> 0) & 0xFF,
(addresses[i].host >> 8) & 0xFF,