Fix implicit int error with ports-gcc since int is missing for main().

OK phessler@
This commit is contained in:
claudio
2025-12-15 19:30:08 +00:00
parent ab1f46afed
commit 20fe00dcde
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ COMMENT = asteroid-like game
DISTNAME = Maelstrom-3.0.6 DISTNAME = Maelstrom-3.0.6
PKGNAME = ${DISTNAME:L} PKGNAME = ${DISTNAME:L}
REVISION = 4 REVISION = 5
CATEGORIES = games x11 CATEGORIES = games x11
HOMEPAGE = http://www.devolution.com/~slouken/Maelstrom/ HOMEPAGE = http://www.devolution.com/~slouken/Maelstrom/
SITES = ${HOMEPAGE}/src/ SITES = ${HOMEPAGE}/src/
@@ -14,3 +14,12 @@ Index: Maelstrom-netd.c
#include <unistd.h> #include <unistd.h>
/* We wait in a loop for players to connect and tell us how many people /* We wait in a loop for players to connect and tell us how many people
@@ -181,7 +183,7 @@ void I_Crashed(int sig)
exit(sig);
}
-main(int argc, char *argv[])
+int main(int argc, char *argv[])
{
int netfd, i, slot;
struct sockaddr_in serv_addr;