Tried to start this project last week, but kept f'ing it up.

Index: src/games/adventure/crc.c
===================================================================
RCS file: /cvs/src/games/adventure/crc.c,v
retrieving revision 1.7
diff -u -p -u -r1.7 crc.c
--- src/games/adventure/crc.c    27 Oct 2009 23:59:23 -0000    1.7
+++ src/games/adventure/crc.c    13 Mar 2016 02:36:23 -0000
@@ -33,6 +33,8 @@
  * SUCH DAMAGE.
  */

+#include <sys/types.h>
+
 #include "extern.h"

 unsigned long crctab[] = {
Index: src/games/adventure/done.c
===================================================================
RCS file: /cvs/src/games/adventure/done.c,v
retrieving revision 1.8
diff -u -p -u -r1.8 done.c
--- src/games/adventure/done.c    27 Oct 2009 23:59:23 -0000    1.8
+++ src/games/adventure/done.c    13 Mar 2016 02:38:24 -0000
@@ -37,8 +37,10 @@

 /*    Re-coding of advent in C: termination routines    */

+#include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
+
 #include "hdr.h"
 #include "extern.h"

Index: src/games/adventure/init.c
===================================================================
RCS file: /cvs/src/games/adventure/init.c,v
retrieving revision 1.14
diff -u -p -u -r1.14 init.c
--- src/games/adventure/init.c    3 Jan 2016 14:38:16 -0000    1.14
+++ src/games/adventure/init.c    13 Mar 2016 02:48:52 -0000
@@ -38,6 +38,7 @@
 /*    Re-coding of advent in C: data initialization    */

 #include <sys/types.h>
+
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
Index: src/games/adventure/io.c
===================================================================
RCS file: /cvs/src/games/adventure/io.c,v
retrieving revision 1.20
diff -u -p -u -r1.20 io.c
--- src/games/adventure/io.c    22 Aug 2015 14:47:40 -0000    1.20
+++ src/games/adventure/io.c    13 Mar 2016 02:49:03 -0000
@@ -38,9 +38,11 @@
 /*    Re-coding of advent in C: file i/o and user i/o            */

 #include <err.h>
+#include <signal.h>
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
+
 #include "hdr.h"
 #include "extern.h"

Index: src/games/adventure/main.c
===================================================================
RCS file: /cvs/src/games/adventure/main.c,v
retrieving revision 1.22
diff -u -p -u -r1.22 main.c
--- src/games/adventure/main.c    7 Jan 2016 16:00:31 -0000    1.22
+++ src/games/adventure/main.c    13 Mar 2016 02:49:17 -0000
@@ -41,7 +41,9 @@
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <unistd.h>
+
 #include "hdr.h"
 #include "extern.h"

Index: src/games/adventure/save.c
===================================================================
RCS file: /cvs/src/games/adventure/save.c,v
retrieving revision 1.10
diff -u -p -u -r1.10 save.c
--- src/games/adventure/save.c    8 Dec 2014 21:56:27 -0000    1.10
+++ src/games/adventure/save.c    13 Mar 2016 02:49:25 -0000
@@ -35,8 +35,10 @@
  * SUCH DAMAGE.
  */

+#include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
+
 #include "hdr.h"
 #include "extern.h"

Index: src/games/adventure/subr.c
===================================================================
RCS file: /cvs/src/games/adventure/subr.c,v
retrieving revision 1.10
diff -u -p -u -r1.10 subr.c
--- src/games/adventure/subr.c    27 Oct 2009 23:59:23 -0000    1.10
+++ src/games/adventure/subr.c    13 Mar 2016 02:50:28 -0000
@@ -37,8 +37,11 @@

 /*    Re-coding of advent in C: subroutines from main            */

+#include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
+
 #include "hdr.h"
 #include "extern.h"

Index: src/games/adventure/vocab.c
===================================================================
RCS file: /cvs/src/games/adventure/vocab.c,v
retrieving revision 1.14
diff -u -p -u -r1.14 vocab.c
--- src/games/adventure/vocab.c    13 Jul 2014 19:40:57 -0000  1.14
+++ src/games/adventure/vocab.c    13 Mar 2016 02:50:36 -0000
@@ -38,8 +38,11 @@
 /*    Re-coding of advent in C: data structure routines        */

 #include <err.h>
+#include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
+
 #include "hdr.h"
 #include "extern.h"

Index: src/games/adventure/wizard.c
===================================================================
RCS file: /cvs/src/games/adventure/wizard.c,v
retrieving revision 1.18
diff -u -p -u -r1.18 wizard.c
--- src/games/adventure/wizard.c    3 Jan 2016 14:38:16 -0000  1.18
+++ src/games/adventure/wizard.c    13 Mar 2016 02:50:44 -0000
@@ -38,6 +38,7 @@
 /*    Re-coding of advent in C: privileged operations            */

 #include <limits.h>
+#include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
Index: src/games/adventure/extern.h
===================================================================
RCS file: /cvs/src/games/adventure/extern.h,v
retrieving revision 1.9
diff -u -p -u -r1.9 extern.h
--- src/games/adventure/extern.h    1 Jan 2016 15:56:04 -0000    1.9
+++ src/games/adventure/extern.h    13 Mar 2016 02:34:17 -0000
@@ -30,9 +30,6 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */

-#include <sys/types.h>
-#include <string.h>
-
 /* crc.c */
 void crc_start(void);
 unsigned long crc(const char *, int);
Index: src/games/adventure/hdr.h
===================================================================
RCS file: /cvs/src/games/adventure/hdr.h,v
retrieving revision 1.14
diff -u -p -u -r1.14 hdr.h
--- src/games/adventure/hdr.h    8 Dec 2014 21:56:27 -0000    1.14
+++ src/games/adventure/hdr.h    13 Mar 2016 02:37:41 -0000
@@ -52,9 +52,6 @@

 /* hdr.h: included by c advent files */

-#include <sys/types.h>
-#include <signal.h>
-
 int     datfd;            /* message file descriptor    */
 volatile sig_atomic_t delhit;
 int     yea;

Reply via email to