From 1e0f02adce6b6f0780d47ffc7d23b1b40a7b29fb Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 14 Mar 2025 20:59:19 +0000 Subject: [PATCH] games-action/maelstrom: fix 'main' patch main has to return int and it's implied if not explicitly done; void main is a constraint violation. Signed-off-by: Sam James --- .../maelstrom/files/maelstrom-3.0.6-fix_return_type.patch | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/games-action/maelstrom/files/maelstrom-3.0.6-fix_return_type.patch b/games-action/maelstrom/files/maelstrom-3.0.6-fix_return_type.patch index 4950b5b6d5e72..0b80637953262 100644 --- a/games-action/maelstrom/files/maelstrom-3.0.6-fix_return_type.patch +++ b/games-action/maelstrom/files/maelstrom-3.0.6-fix_return_type.patch @@ -1,8 +1,3 @@ -Adds void to main() - -Quick fix to the compile issue on main. There is no return statement, so return type is set to void. - -Signed-off-by: Stephane Bakhos https://bugs.gentoo.org/875431 --- a/Maelstrom-netd.c +++ b/Maelstrom-netd.c @@ -11,7 +6,7 @@ https://bugs.gentoo.org/875431 } -main(int argc, char *argv[]) -+void main(int argc, char *argv[]) ++int main(int argc, char *argv[]) { int netfd, i, slot; struct sockaddr_in serv_addr;