games/adventure WARNS=6 patch

H}kon Schad Bergsaker hakonsb at student.matnat.uio.no
Thu Mar 24 15:14:21 PST 2005


Hi,

this patch should remove the WARNS=6 warnings from games/adventure.

-- 
Haakon BergsakerIndex: Makefile
===================================================================
RCS file: /home/dcvs/src/games/adventure/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile	27 Jul 2004 07:41:03 -0000	1.4
+++ Makefile	24 Mar 2005 23:38:38 -0000
@@ -7,6 +7,7 @@
 MAN=	adventure.6
 HIDEGAME=hidegame
 CLEANFILES=data.c setup.nx setup.no
+WARNS?= 6
 
 build-tools: setup.nx
 
Index: done.c
===================================================================
RCS file: /home/dcvs/src/games/adventure/done.c,v
retrieving revision 1.2
diff -u -r1.2 done.c
--- done.c	17 Jun 2003 04:25:22 -0000	1.2
+++ done.c	24 Mar 2005 23:38:38 -0000
@@ -43,6 +43,7 @@
 /*      Re-coding of advent in C: termination routines                  */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include "hdr.h"
 
 int
Index: main.c
===================================================================
RCS file: /home/dcvs/src/games/adventure/main.c,v
retrieving revision 1.2
diff -u -r1.2 main.c
--- main.c	17 Jun 2003 04:25:22 -0000	1.2
+++ main.c	24 Mar 2005 23:47:44 -0000
@@ -48,6 +48,7 @@
 #include <sys/types.h>
 #include <signal.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 #include "hdr.h"
Index: subr.c
===================================================================
RCS file: /home/dcvs/src/games/adventure/subr.c,v
retrieving revision 1.2
diff -u -r1.2 subr.c
--- subr.c	17 Jun 2003 04:25:22 -0000	1.2
+++ subr.c	24 Mar 2005 23:38:38 -0000
@@ -43,6 +43,7 @@
 /*      Re-coding of advent in C: subroutines from main                 */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include "hdr.h"
 
Index: vocab.c
===================================================================
RCS file: /home/dcvs/src/games/adventure/vocab.c,v
retrieving revision 1.2
diff -u -r1.2 vocab.c
--- vocab.c	17 Jun 2003 04:25:22 -0000	1.2
+++ vocab.c	24 Mar 2005 23:38:38 -0000
@@ -44,6 +44,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <err.h>
 #include "hdr.h"
 




More information about the Submit mailing list