commit:     1e0f02adce6b6f0780d47ffc7d23b1b40a7b29fb
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 14 20:59:19 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 14 20:59:56 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e0f02ad

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 <sam <AT> gentoo.org>

 games-action/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 4950b5b6d5e7..0b8063795326 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 <[email protected]>
 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;

Reply via email to