From ab926254fd8e9947f760a582c3d67144bc550e4a Mon Sep 17 00:00:00 2001 From: Robert Tomsick Date: Wed, 8 Aug 2012 23:10:02 -0400 Subject: [PATCH] dtscreen: include stdlib where appropriate Signed-off-by: Robert Tomsick --- cde/programs/dtscreen/flame.c | 1 + cde/programs/dtscreen/hopalong.c | 1 + cde/programs/dtscreen/image.c | 1 + cde/programs/dtscreen/life.c | 1 + cde/programs/dtscreen/pyro.c | 2 ++ cde/programs/dtscreen/qix.c | 1 + cde/programs/dtscreen/rotor.c | 1 + cde/programs/dtscreen/swarm.c | 1 + cde/programs/dtscreen/worm.c | 3 ++- 9 files changed, 11 insertions(+), 1 deletion(-) diff --git a/cde/programs/dtscreen/flame.c b/cde/programs/dtscreen/flame.c index 4de3d251..9ba56a50 100644 --- a/cde/programs/dtscreen/flame.c +++ b/cde/programs/dtscreen/flame.c @@ -44,6 +44,7 @@ #include "dtscreen.h" #include +#include #define MAXTOTAL 10000 #define MAXBATCH 10 diff --git a/cde/programs/dtscreen/hopalong.c b/cde/programs/dtscreen/hopalong.c index 539fb79c..8fd3cc1e 100644 --- a/cde/programs/dtscreen/hopalong.c +++ b/cde/programs/dtscreen/hopalong.c @@ -52,6 +52,7 @@ #include "dtscreen.h" #include +#include typedef struct { int centerx; diff --git a/cde/programs/dtscreen/image.c b/cde/programs/dtscreen/image.c index da6ff032..d35625ba 100644 --- a/cde/programs/dtscreen/image.c +++ b/cde/programs/dtscreen/image.c @@ -42,6 +42,7 @@ #include "dtscreen.h" #include "xlogo.bit" +#include static XImage logo = { 0, 0, /* width, height */ diff --git a/cde/programs/dtscreen/life.c b/cde/programs/dtscreen/life.c index a2d6d115..7d5eef58 100644 --- a/cde/programs/dtscreen/life.c +++ b/cde/programs/dtscreen/life.c @@ -47,6 +47,7 @@ #include "dtscreen.h" #include "lifeicon.bit" +#include static XImage logo = { 0, 0, /* width, height */ diff --git a/cde/programs/dtscreen/pyro.c b/cde/programs/dtscreen/pyro.c index e08c2b22..0501f55f 100644 --- a/cde/programs/dtscreen/pyro.c +++ b/cde/programs/dtscreen/pyro.c @@ -50,6 +50,8 @@ #include "dtscreen.h" #include +#include + #define TWOPI 6.2831853 /* Define this >1 to get small rectangles instead of points */ diff --git a/cde/programs/dtscreen/qix.c b/cde/programs/dtscreen/qix.c index 9aa45459..e497bdc9 100644 --- a/cde/programs/dtscreen/qix.c +++ b/cde/programs/dtscreen/qix.c @@ -49,6 +49,7 @@ */ #include "dtscreen.h" +#include typedef struct { int x; diff --git a/cde/programs/dtscreen/rotor.c b/cde/programs/dtscreen/rotor.c index f6b3694f..ead68a8e 100644 --- a/cde/programs/dtscreen/rotor.c +++ b/cde/programs/dtscreen/rotor.c @@ -47,6 +47,7 @@ #include #include +#include #include "dtscreen.h" #define SAVE 100 /* this is a good constant to tweak */ diff --git a/cde/programs/dtscreen/swarm.c b/cde/programs/dtscreen/swarm.c index c3a6bc3d..f72d42ac 100644 --- a/cde/programs/dtscreen/swarm.c +++ b/cde/programs/dtscreen/swarm.c @@ -38,6 +38,7 @@ * 31-Aug-90: Adapted from xswarm by Jeff Butterworth. (butterwo@ncsc.org) */ +#include #include "dtscreen.h" #define TIMES 4 /* number of time positions recorded */ diff --git a/cde/programs/dtscreen/worm.c b/cde/programs/dtscreen/worm.c index 10d4cad4..bdf01413 100644 --- a/cde/programs/dtscreen/worm.c +++ b/cde/programs/dtscreen/worm.c @@ -53,7 +53,8 @@ */ #include "dtscreen.h" -#include +#include +#include #define MAXCOLORS 64 #define MAXWORMS 64 -- 2.25.1