Date: Thursday April 26, 2001 @ 18:33 Author: cameron Update of /home/netrek/cvsroot/Vanilla/pledit In directory swashbuckler.fortress.real-time.com:/var/tmp/cvs-serv18335/pledit Modified Files: main.c Log Message: Fri Apr 27 09:25:23 2001 Benjamin `Quisar' Lerman <quisar at quisar.ambre.net> * pledit/main.c (fatal): remove core dump on call to fatal, errno changed to nerrno, since errno is a macro on some platforms. Message-ID: <20010426003724.A2590 at hell.ambre.net> Fri Apr 27 09:24:45 2001 James Cameron <quozl at us.netrek.org> * pledit/main.c: main() should be int, when LTD_STATS defined. **************************************** Index: Vanilla/pledit/main.c diff -u Vanilla/pledit/main.c:1.3 Vanilla/pledit/main.c:1.4 --- Vanilla/pledit/main.c:1.3 Mon Aug 16 13:16:20 1999 +++ Vanilla/pledit/main.c Thu Apr 26 18:33:08 2001 @@ -10,7 +10,7 @@ #ifdef LTD_STATS -void main(void) { +int main(void) { printf("pledit: This program does not work with LTD_STATS.\n"); @@ -39,7 +39,7 @@ * fatal(int errno, char *format, arg1, arg2, ...) */ -void fatal(int errno, const char *fmt, ...) +void fatal(int nerrno, const char *fmt, ...) { va_list args; @@ -55,7 +55,7 @@ vfprintf(stderr, fmt, args); #endif - if (errno > 0) + if (nerrno > 0) perror(" "); else putc('\n', stderr); @@ -71,7 +71,7 @@ * Handle fatal signals (like SIGINT) */ -void signal_handler(void) +void signal_handler(int s) { endwin(); /* shut curses down */ exit(3);