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
@@ -183,7 +183,7 @@ all: data ${TARGET}
supernova deep_magic magic charon pluto
${PROG}: ${PROG}.c
@echo "NOTE: This entry might not compile when using modern compilers."
@echo "NOTE: your terminal must wrap at 80 columns for this to work right!"
${CC} ${CFLAGS} $< -o $@ ${LIBS}
whereami: ${PROG}