]> thyrsus.com Git - vms-empire.git/commitdiff
Add some header declarations to avoid -Wall warnings.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 22 Aug 2013 18:01:38 +0000 (14:01 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 22 Aug 2013 18:01:38 +0000 (14:01 -0400)
compmove.c
empire.c
game.c
math.c
usermove.c
util.c

index a9d33ca42826ccdd7292bcb250766c78044c8f36..79de5352302823981e978de26b1ec1a602bb9a2d 100644 (file)
@@ -16,6 +16,7 @@ For each move the user wants us to make, we do the following:
 */
 
 #include <string.h>
+#include <curses.h>    /* Ugh...shouldn't be needed here */
 #include "empire.h"
 #include "extern.h"
 
index 1c44569db6cdaad43be582110cc0b26ea22c80b4..161019fe39753cc2d5b9f67dd1cdc5ada5531e2a 100644 (file)
--- a/empire.c
+++ b/empire.c
@@ -11,6 +11,7 @@ parser, and the simple commands.
 */
 
 #include <stdio.h>
+#include <curses.h>    /* Ugh...shouldn't be needed here */
 #include "empire.h"
 #include "extern.h"
 
@@ -327,7 +328,6 @@ Print a "zoomed" version of the computer's map.
 
 void
 c_movie (void) {
-       (void) clear ();
        for (;;) {
                comp_move (1);
                print_zoom (comp_map);
diff --git a/game.c b/game.c
index b3e8925cef010632ca7afbc025dff804be3b7977..2cec490417be45cd9955b86505d48270da0fb426 100644 (file)
--- a/game.c
+++ b/game.c
@@ -13,6 +13,7 @@ game.c -- Routines to initialize, save, and restore a game.
 #include <stdlib.h>
 #include <stdio.h>
 #include <ctype.h>
+#include <curses.h>    /* Ugh...shouldn't be needed here */
 #include "empire.h"
 #include "extern.h"
 
diff --git a/math.c b/math.c
index dd206b4ce478ab58f985db52e842825d77beaf25..d68eb1201512c4f8a115cfdc12793b080877e432 100644 (file)
--- a/math.c
+++ b/math.c
@@ -21,6 +21,7 @@ Other routines include:
 */
 
 #include <stdlib.h>
+#include <time.h>
 #include "empire.h"
 #include "extern.h"
 
index 5fcb7886711693f7ab88a8de58ce125c47b3dbcd..0b57746f3438d4922a856a1d7cd267e2432c9b41 100644 (file)
@@ -12,6 +12,7 @@ usermove.c -- Let the user move her troops.
 #include <stdio.h>
 #include <ctype.h>
 #include <string.h>
+#include <curses.h>    /* Ugh...shouldn't be needed here */
 #include "empire.h"
 #include "extern.h"
 
diff --git a/util.c b/util.c
index 4e0346119dfa5d8d6710d9aee9da720475585b70..956401daba896d90e94fa09e8b0ef6797a104b91 100644 (file)
--- a/util.c
+++ b/util.c
@@ -11,6 +11,7 @@ util.c -- various utility routines.
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <curses.h>    /* Ugh...shouldn't be needed here */
 #include <ctype.h>
 #include <signal.h>
 #include "empire.h"
@@ -22,6 +23,8 @@ Convert a string to uppercase.
 Shirley this is defined elsewhere?
 */
 
+#include <sys/types.h>
+#include <unistd.h>
 #include <ctype.h>
 
 void