Fix 1992/westley to compile with clang

Since the third and fourth args of main() were being used as ints I have
made them ints inside main() as clang does not allow the second, third
or fourth args to main() to be anything but char **. An important note
(which the author noted but which I put in the Makefile as well as under
the 'To run:' section) is that the terminal must wrap at 80 columns in
order for this to work right. I had to shrink down the terminal size to
get to show that this change worked okay - it was the simplest way I
could think of to do it.
This commit is contained in:
Cody Boone Ferguson committed 2023-03-17 11:12:45 -07:00
1 parent ada4d41f37
commit 9ac70905d3
4 files changed
+25 -8

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
main(l
,a,n,d)char**a;{
,a)char**a;{int n;int d;
for(d=atoi(a[1])/10*80-
atoi(a[2])/5-596;n="@NKA\
CLCCGZAAQBEAADAFaISADJABBA^\