rogue

Ken Arnold's Rogue
git clone https://git.woozle.org/neale/rogue.git

commit
f03844f
parent
3b36a6a
author
Neale Pickett
date
2017-04-21 16:57:52 -0600 MDT
Got it compiling again, but wow, warnings.
4 files changed,  +7, -7
M Makefile
+3, -3
 1@@ -5,12 +5,12 @@ OBJS =	terminal.o rmove.o network.o netprot.o rwrite.o rread.o \
 2 	system.o ctlmod.o \
 3 	find.o inter.o
 4 
 5-LDFLAGS = -lncurses -lcrypt
 6+LDFLAGS = $(shell pkg-config --libs ncurses)
 7 
 8 default: rogue
 9 
10 rogue: $(OBJS)
11-	$(CC) -o $@ $(LDFLAGS) $^
12+	$(CC) -o $@ $^ $(LDFLAGS)
13 
14 clean:
15-	rm -f $(OBJS) rogue
16+	rm -f $(OBJS) rogue
M control.c
+2, -1
 1@@ -6,6 +6,7 @@
 2 
 3 #include <curses.h>
 4 #include <ctype.h>
 5+#include <string.h>
 6 #include "netprot.h"
 7 
 8 /*
 9@@ -269,5 +270,5 @@ show_win(char *message)
10     clearok(curscr, TRUE);
11 #ifdef	attron
12     touchwin(stdscr);
13-#endif	attron
14+#endif	/* attron */
15 }
M rmove.c
+1, -1
1@@ -387,4 +387,4 @@ struct h_list Helpstr[] = {
2 
3 #ifdef TIOCGLTC
4 struct ltchars Ltc;		/* needed to change ^Y to not be suspchar */
5-#endif TIOCGLTC
6+#endif /* TIOCGLTC */
M rread.c
+1, -2
 1@@ -96,8 +96,7 @@ kill_daemon(void (*func)(int))
 2  *	passing the argument to the function.
 3  */
 4 void
 5-do_daemons(flag)
 6-int flag;
 7+do_daemons(int flag)
 8 {
 9     struct delayed_action *dev;
10