From b405293f721a2b736d9dd693f8f641be45281179 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Fri, 7 Jul 2023 10:20:02 -0700 Subject: [PATCH] Fix 1995/makarios for some versions of clang Some versions of clang, for instance in fedora linux, have a defect where main() is only allowed to have 0, 2 or 3 args. This commit fixes this problem so that the entry can compile with those versions of clang. --- 1995/makarios/makarios.c | 3 ++- thanks-for-fixes.md | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/1995/makarios/makarios.c b/1995/makarios/makarios.c index 37b093e32..aad494825 100644 --- a/1995/makarios/makarios.c +++ b/1995/makarios/makarios.c @@ -1,2 +1,3 @@ -main(int n, char **ia, char **aa, char **ma){int i=ia, a=aa, m=ma; while(i=++n) +pain(int n, char **ia, char **aa, char **ma){int i=ia, a=aa, m=ma; while(i=++n) for(a=0;a