dtscreen: include stdlib where appropriate
authorRobert Tomsick <robert@tomsick.net>
Thu, 9 Aug 2012 03:10:02 +0000 (23:10 -0400)
committerJon Trulson <jon@radscan.com>
Thu, 9 Aug 2012 17:33:25 +0000 (11:33 -0600)
Signed-off-by: Robert Tomsick <robert@tomsick.net>
cde/programs/dtscreen/flame.c
cde/programs/dtscreen/hopalong.c
cde/programs/dtscreen/image.c
cde/programs/dtscreen/life.c
cde/programs/dtscreen/pyro.c
cde/programs/dtscreen/qix.c
cde/programs/dtscreen/rotor.c
cde/programs/dtscreen/swarm.c
cde/programs/dtscreen/worm.c

index 4de3d251292bf147781b13c6c0138028db5cbc57..9ba56a50bf5704b22f0e0b0db7015c1bacee9086 100644 (file)
@@ -44,6 +44,7 @@
 
 #include "dtscreen.h"
 #include <math.h>
+#include <stdlib.h>
 
 #define MAXTOTAL       10000
 #define MAXBATCH       10
index 539fb79c47703f3fca49b0378720ad8db5afe0ed..8fd3cc1e0c10c9dce2ac1423b480faf66f00cd2c 100644 (file)
@@ -52,6 +52,7 @@
 
 #include "dtscreen.h"
 #include <math.h>
+#include <stdlib.h>
 
 typedef struct {
     int         centerx;
index da6ff03273b4f77d20701bed95ab3b00d7ce0613..d35625ba89433e6af91d20ca972a11736cb7d90b 100644 (file)
@@ -42,6 +42,7 @@
 
 #include "dtscreen.h"
 #include "xlogo.bit"
+#include <stdlib.h>
 
 static XImage logo = {
     0, 0,                      /* width, height */
index a2d6d11579b46a86825bd68f99098c3a39affbc6..7d5eef58e1b13c917fee9c87508f519bc4a3a80b 100644 (file)
@@ -47,6 +47,7 @@
 
 #include "dtscreen.h"
 #include "lifeicon.bit"
+#include <stdlib.h>
 
 static XImage logo = {
     0, 0,                      /* width, height */
index e08c2b222c5bb30cb5cc1dd16d1494474eec583b..0501f55fe421b518f2b7364e7ed952a5e5fa2c59 100644 (file)
@@ -50,6 +50,8 @@
 
 #include "dtscreen.h"
 #include <math.h>
+#include <stdlib.h>
+
 #define TWOPI 6.2831853
 
 /* Define this >1 to get small rectangles instead of points */
index 9aa454594bd8a2cac33d86f502ccdc2f2918d702..e497bdc9ed931e4a520884283cc6a76e6cff4eec 100644 (file)
@@ -49,6 +49,7 @@
  */
 
 #include "dtscreen.h"
+#include <stdlib.h>
 
 typedef struct {
     int         x;
index f6b3694f494ab90270da79b9515b5d57480f8493..ead68a8e710a439c0827265f10391798b2cf7648 100644 (file)
@@ -47,6 +47,7 @@
 
 #include <stdio.h>
 #include <math.h>
+#include <stdlib.h>
 #include "dtscreen.h"
 
 #define SAVE           100     /* this is a good constant to tweak */
index c3a6bc3dc856cbc1af86a1df20b979104f505473..f72d42ac758a12873af1b8899a2afa52bdcecd30 100644 (file)
@@ -38,6 +38,7 @@
  * 31-Aug-90: Adapted from xswarm by Jeff Butterworth. (butterwo@ncsc.org)
  */
 
+#include <stdlib.h>
 #include "dtscreen.h"
 
 #define TIMES  4               /* number of time positions recorded */
index 10d4cad473a16a41b816708568d0e2c12fe8113f..bdf014139326fdf5cc5270b8627f7d5a6b073d2f 100644 (file)
@@ -53,7 +53,8 @@
  */
 
 #include "dtscreen.h"
-#include       <math.h>
+#include <math.h>
+#include <stdlib.h>
 
 #define MAXCOLORS 64
 #define MAXWORMS 64