Fix both original and alt code for 1992/westley

For both check args.

For alt move main()'s code to new function as some versions of clang do
not allow four args. Instead main() has two args now, the traditional
argc and argv, and the other two are passed 0.
This commit is contained in:
Cody Boone Ferguson committed 2023-10-30 05:55:07 -07:00
1 parent 641ddafe2a
commit e2a8f813dc
4 files changed
+14 -23

No files matched your search

-13
View File
@@ -788,19 +788,6 @@ As you might see the part under the `warning:` line is different.
Can you help us?
## 1992 westley
### STATUS: INABIAF - please **DO NOT** fix
### Source code: [1992/westley/westley.c](1992/westley/westley.c)
### Information: [1992/westley/README.md](1992/westley/README.md)
This program and the alternate version will very likely crash or
[nuke](https://en.wikipedia.org/wiki/Nuclear_weapon) the [entire
world](https://en.wikipedia.org/wiki/Earth) or just the
[USA](https://en.wikipedia.org/wiki/United_States), respectively, without enough
args. And not that we need any help with this or anything :-) but we do
encourage you to test it. This should not be fixed.
# 1993