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

This commit is contained in:
jessica parsons
2026-06-19 12:51:51 -07:00
parent 2ae87732d9
commit 52db5cfdc9
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
. tests/functions.sh . tests/functions.sh
title 'Recursion limits' title 'recursion limits'
rc=0 rc=0
limits() { limits() {
+2
View File
@@ -1,6 +1,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
int
main(argc, argv) main(argc, argv)
int argc; int argc;
char **argv; char **argv;
@@ -33,4 +34,5 @@ char **argv;
printf("%s", pattern2); printf("%s", pattern2);
putchar('\n'); putchar('\n');
exit(0);
} }