Got it compiling again, but wow, warnings.

This commit is contained in:
Neale Pickett 2017-04-21 16:57:52 -06:00
parent 3b36a6aac2
commit f03844fd26
4 changed files with 7 additions and 7 deletions

View File

@ -5,12 +5,12 @@ OBJS = terminal.o rmove.o network.o netprot.o rwrite.o rread.o \
system.o ctlmod.o \ system.o ctlmod.o \
find.o inter.o find.o inter.o
LDFLAGS = -lncurses -lcrypt LDFLAGS = $(shell pkg-config --libs ncurses)
default: rogue default: rogue
rogue: $(OBJS) rogue: $(OBJS)
$(CC) -o $@ $(LDFLAGS) $^ $(CC) -o $@ $^ $(LDFLAGS)
clean: clean:
rm -f $(OBJS) rogue rm -f $(OBJS) rogue

View File

@ -6,6 +6,7 @@
#include <curses.h> #include <curses.h>
#include <ctype.h> #include <ctype.h>
#include <string.h>
#include "netprot.h" #include "netprot.h"
/* /*
@ -269,5 +270,5 @@ show_win(char *message)
clearok(curscr, TRUE); clearok(curscr, TRUE);
#ifdef attron #ifdef attron
touchwin(stdscr); touchwin(stdscr);
#endif attron #endif /* attron */
} }

View File

@ -387,4 +387,4 @@ struct h_list Helpstr[] = {
#ifdef TIOCGLTC #ifdef TIOCGLTC
struct ltchars Ltc; /* needed to change ^Y to not be suspchar */ struct ltchars Ltc; /* needed to change ^Y to not be suspchar */
#endif TIOCGLTC #endif /* TIOCGLTC */

View File

@ -96,8 +96,7 @@ kill_daemon(void (*func)(int))
* passing the argument to the function. * passing the argument to the function.
*/ */
void void
do_daemons(flag) do_daemons(int flag)
int flag;
{ {
struct delayed_action *dev; struct delayed_action *dev;