diff --git a/Makefile b/Makefile index 14cbe57..d72f63e 100644 --- a/Makefile +++ b/Makefile @@ -5,12 +5,12 @@ OBJS = terminal.o rmove.o network.o netprot.o rwrite.o rread.o \ system.o ctlmod.o \ find.o inter.o -LDFLAGS = -lncurses -lcrypt +LDFLAGS = $(shell pkg-config --libs ncurses) default: rogue rogue: $(OBJS) - $(CC) -o $@ $(LDFLAGS) $^ + $(CC) -o $@ $^ $(LDFLAGS) clean: - rm -f $(OBJS) rogue \ No newline at end of file + rm -f $(OBJS) rogue diff --git a/control.c b/control.c index d318023..ea83261 100644 --- a/control.c +++ b/control.c @@ -6,6 +6,7 @@ #include #include +#include #include "netprot.h" /* @@ -269,5 +270,5 @@ show_win(char *message) clearok(curscr, TRUE); #ifdef attron touchwin(stdscr); -#endif attron +#endif /* attron */ } diff --git a/rmove.c b/rmove.c index d2a750a..83b2c9c 100644 --- a/rmove.c +++ b/rmove.c @@ -387,4 +387,4 @@ struct h_list Helpstr[] = { #ifdef TIOCGLTC struct ltchars Ltc; /* needed to change ^Y to not be suspchar */ -#endif TIOCGLTC +#endif /* TIOCGLTC */ diff --git a/rread.c b/rread.c index b8f5e04..a0eea16 100644 --- a/rread.c +++ b/rread.c @@ -96,8 +96,7 @@ kill_daemon(void (*func)(int)) * passing the argument to the function. */ void -do_daemons(flag) -int flag; +do_daemons(int flag) { struct delayed_action *dev;