From 52db5cfdc939b4bdf17d3d8a06c5027c9e5222f2 Mon Sep 17 00:00:00 2001 From: jessica parsons Date: Fri, 19 Jun 2026 12:51:51 -0700 Subject: [PATCH] add an explicit 'int' to the main declaration in 300.c; also add an exit(0) for whiny C compilers; lowercase the title in limits.t --- tests/limits.t | 2 +- tools/300.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/limits.t b/tests/limits.t index c734d2d..8fc07dd 100644 --- a/tests/limits.t +++ b/tests/limits.t @@ -1,6 +1,6 @@ . tests/functions.sh -title 'Recursion limits' +title 'recursion limits' rc=0 limits() { diff --git a/tools/300.c b/tools/300.c index c184a57..723aaa5 100644 --- a/tools/300.c +++ b/tools/300.c @@ -1,6 +1,7 @@ #include #include +int main(argc, argv) int argc; char **argv; @@ -33,4 +34,5 @@ char **argv; printf("%s", pattern2); putchar('\n'); + exit(0); }