File orbit-1.01-non_void.patch of Package orbital

--- src/ac3d.c
+++ src/ac3d.c
@@ -104,7 +104,7 @@
 	{"OBJECT"  , DoObject  },
 };
 
-InitTextures()
+void InitTextures()
 {
 	int t;
 
@@ -209,7 +209,7 @@
 	return m;
 }
 
-ScanForTextures()
+void ScanForTextures()
 /*
  *  Look through the AC3D file for all "texture" lines
  */
@@ -230,7 +230,7 @@
 	fseek (acfd, 0, SEEK_SET);
 }
 
-LoadTexture (s)
+void LoadTexture (s)
 char *s;
 /*
  *  Load a texture file
@@ -870,7 +870,7 @@
 	return PARSE_POP;
 }
 
-MaintainNormal (i, n)
+void MaintainNormal (i, n)
 int i;
 float n[3];
 /*
--- src/boom.c
+++ src/boom.c
@@ -21,7 +21,7 @@
 
 #include "orbit.h"
 
-InitBooms()
+void InitBooms()
 /*
  *  Initiliaze explosions
  */
@@ -81,7 +81,7 @@
 	return (oldest);
 }
 
-DestroyBoom (b)
+void DestroyBoom (b)
 int b;
 /*
  *  Mark boom as unused
@@ -93,7 +93,7 @@
 	DestroyLight (boom[b].light);
 }
 
-Boom (v, size)
+void Boom (v, size)
 double v[3], size;
 /*
  *  There was an explosion at coordinates v[]
@@ -126,7 +126,7 @@
 	if (sound) PlayAudio (SOUND_BOOM);
 }
 
-DrawBooms()
+void DrawBooms()
 /*
  *  Draw the explosions
  */
@@ -140,7 +140,7 @@
 	}
 }
 
-DrawBoom (b)
+void DrawBoom (b)
 int b;
 /*
  *  Draw this explosion
--- src/client.c
+++ src/client.c
@@ -58,7 +58,7 @@
 	return (-1);
 }
 
-DoClient()
+void DoClient()
 /*
  *  Handle ORBIT client duties
  */
@@ -157,7 +157,7 @@
 	ServerData (buf, r);
 }
 
-ServerData (buf, n)
+void ServerData (buf, n)
 int n;
 char *buf;
 /*
@@ -192,7 +192,7 @@
 #endif
 }
 
-ServerByte (c)
+void ServerByte (c)
 char c;
 /*
  *  Process one byte from server
@@ -231,7 +231,7 @@
 	}
 }
 
-ServerPacket (pkt)
+void ServerPacket (pkt)
 char *pkt;
 /*
  *  Handle a packet from the server
@@ -358,7 +358,7 @@
 	}
 }
 
-ServerPing (pkt)
+void ServerPing (pkt)
 char *pkt;
 /*
  *  Handle ping packet from server
@@ -368,7 +368,7 @@
 	SendASCIIPacket (clientme.socket, pkt);
 }
 
-ServerBinaryPing (pkt)
+void ServerBinaryPing (pkt)
 char *pkt;
 /*
  *  Handle binary ping packet
@@ -383,7 +383,7 @@
 	SendBinaryPacket (clientme.socket, "cF", PKT_PING, t);
 }
 
-ServerMessage (pkt)
+void ServerMessage (pkt)
 char *pkt;
 /*
  *  Text message from server
@@ -396,7 +396,7 @@
 	}
 }
 
-ServerWelcome (pkt)
+void ServerWelcome (pkt)
 char *pkt;
 /*
  *  Server says hello and gives us our client number
@@ -420,7 +420,7 @@
 	target[t].hidden = target[t].invisible = 1;
 }
 
-ReportPosition()
+void ReportPosition()
 /*
  *  Report my position
  */
@@ -472,7 +472,7 @@
 #endif
 }
 
-ServerPositionShort (pkt)
+void ServerPositionShort (pkt)
 char *pkt;
 /*
  *  The server is sending a client's short position report
@@ -493,7 +493,7 @@
 	PositionShort (c, pos, vel);
 }
 
-PositionShort (c, pos, vel)
+void PositionShort (c, pos, vel)
 int c;
 double pos[3], vel[3];
 /*
@@ -531,7 +531,7 @@
 	}
 }
 
-ServerPositionLong (pkt)
+void ServerPositionLong (pkt)
 char *pkt;
 /*
  *  The server is sending a client's long position report
@@ -557,7 +557,7 @@
 		move_left, move_pitchright, move_pitchleft);
 }
 
-PositionLong (c, pos, vel, view, up, move_up, move_down, move_right, move_left,
+void PositionLong (c, pos, vel, view, up, move_up, move_down, move_right, move_left,
 	move_pitchright, move_pitchleft)
 int c;
 double pos[3], vel[3], view[3], up[3];
@@ -620,7 +620,7 @@
 	}
 }
 
-ServerMHit (pkt)
+void ServerMHit (pkt)
 char *pkt;
 /*
  *  We were hit by a missile
@@ -643,7 +643,7 @@
 	if (player.shields < 0.0) player.shields = 0.0;
 }
 
-ServerMDie (pkt)
+void ServerMDie (pkt)
 char *pkt;
 /*
  *  Someone was killed.  Hope it wasn't me!
@@ -687,7 +687,7 @@
 	CheckLock();
 }
 
-ServerCrater (pkt)
+void ServerCrater (pkt)
 char *pkt;
 /*
  *  Someone hit a planet.  Hope it wasn't me!
@@ -729,7 +729,7 @@
 	CheckLock();
 }
 
-ServerFire (pkt)
+void ServerFire (pkt)
 char *pkt;
 /*
  *  Someone nearby has fired a missile
@@ -752,7 +752,7 @@
 		0, w, t);
 }
 
-ServerPlanet (pkt)
+void ServerPlanet (pkt)
 char *pkt;
 /*
  *  Server sends the position of a planet
@@ -771,7 +771,7 @@
 	if ((p >= 0) && (p < NPLANETS)) planet[p].theta = theta;
 }
 
-ServerBinaryPlanet (pkt)
+void ServerBinaryPlanet (pkt)
 char *pkt;
 /*
  *  Server sends the position of a planet in binary
@@ -787,7 +787,7 @@
 	if ((p >= 0) && (p < NPLANETS)) planet[p].theta = theta;
 }
 
-ServerResetPlanets (pkt)
+void ServerResetPlanets (pkt)
 char *pkt;
 /*
  *  Server done sending planet positions
@@ -796,7 +796,7 @@
 	PositionPlanets();
 }
 
-ServerName (pkt)
+void ServerName (pkt)
 char *pkt;
 /*
  *  Server sends us the name of an active client
@@ -839,7 +839,7 @@
 	client[c].frags = f;
 }
 
-ServerHelo (pkt)
+void ServerHelo (pkt)
 char *pkt;
 /*
  *  A new client has joined the game
@@ -876,7 +876,7 @@
 	strcpy (target[t].name, buf);
 }
 
-ServerVacant (pkt)
+void ServerVacant (pkt)
 char *pkt;
 /*
  *  Server tells us about an unused client slot
@@ -908,7 +908,7 @@
 	client[c].target = (-1);
 }
 
-ServerGbye (pkt)
+void ServerGbye (pkt)
 char *pkt;
 /*
  *  Someone has left the game
@@ -944,7 +944,7 @@
 	client[c].target = (-1);
 }
 
-ServerCMSG (pkt)
+void ServerCMSG (pkt)
 char *pkt;
 /*
  *  Server has a console message for us
@@ -960,7 +960,7 @@
 	if (sound) PlayAudio (SOUND_COMM);
 }
 
-ServerFlag (pkt)
+void ServerFlag (pkt)
 char *pkt;
 /*
  *  Game flags from server
@@ -991,7 +991,7 @@
 	BecomeClient (text.buf);
 }
 
-ServerModel (pkt)
+void ServerModel (pkt)
 char *pkt;
 /*
  *  Set client model
@@ -1029,7 +1029,7 @@
 	}
 }
 
-ServerBinaryPacket (pkt)
+void ServerBinaryPacket (pkt)
 unsigned char *pkt;
 /*
  *  Handle binary packet from server
@@ -1065,7 +1065,7 @@
 	}
 }
 
-BinaryPositionShort (pkt)
+void BinaryPositionShort (pkt)
 unsigned char *pkt;
 /*
  *  Binary short position report
@@ -1078,7 +1078,7 @@
 	PositionShort (c, pos, vel);
 }
 
-BinaryPositionLong (pkt)
+void BinaryPositionLong (pkt)
 unsigned char *pkt;
 /*
  *  Binary long position report
@@ -1098,7 +1098,7 @@
 		move_pitchright, move_pitchleft);
 }
 
-ServerBinaryVacant (pkt)
+void ServerBinaryVacant (pkt)
 char *pkt;
 /*
  *  Server tells us which clients are in use
--- src/console.c
+++ src/console.c
@@ -22,7 +22,7 @@
 #include "orbit.h"
 #include <stdarg.h>
 
-InitConsole()
+void InitConsole()
 /*
  *  Initialize the message console
  */
@@ -71,7 +71,7 @@
 	console.next++;
 }
 
-DisplayConsole()
+void DisplayConsole()
 /*
  *  Display the console messages
  */
@@ -95,7 +95,7 @@
 	}
 }
 
-InitMessage()
+void InitMessage()
 /*
  *  Initialize the message system
  */
@@ -106,7 +106,7 @@
 	message.age = MSG_MAXAGE + 1.0;
 }
 
-DrawMessage()
+void DrawMessage()
 /*
  *  Draw the message on the screen
  */
@@ -236,7 +236,7 @@
 	}
 }
 
-GetText (prompt, func)
+void GetText (prompt, func)
 char *prompt;
 void (*func)(void);
 /*
--- src/event.c
+++ src/event.c
@@ -25,7 +25,7 @@
  *  Stuff to implement events
  */
 
-InitEvents ()
+void InitEvents ()
 /*
  *  Initialize events
  */
@@ -54,7 +54,7 @@
 	}
 }
 
-ResetEvents ()
+void ResetEvents ()
 /*
  *  Re-Initialize events
  */
@@ -138,7 +138,7 @@
 	return (-1);
 }
 
-DoEvents()
+void DoEvents()
 /*
  *  Process events
  */
@@ -198,7 +198,7 @@
 	}
 }
 
-EventTrigApproach (e)
+void EventTrigApproach (e)
 int e;
 {
 	double v[3], r;
@@ -211,7 +211,7 @@
 	if (r <= event[e].fvalue*event[e].fvalue) EventAction (e);
 }
 
-EventTrigStopnear (e)
+void EventTrigStopnear (e)
 int e;
 {
 	double v[3], r;
@@ -228,7 +228,7 @@
 	if (r <= event[e].fvalue*event[e].fvalue) EventAction (e);
 }
 
-EventTrigDepart (e)
+void EventTrigDepart (e)
 int e;
 {
 	double v[3], r;
@@ -246,7 +246,7 @@
 	}
 }
 
-EventTrigDestroy (e)
+void EventTrigDestroy (e)
 int e;
 /*
  *  Do nothing here -- destroy triggers are checked by
@@ -254,27 +254,27 @@
  */
 {}
 
-EventTrigShields (e)
+void EventTrigShields (e)
 int e;
 /*
  *  Not checked here -- checked in MissileHitTarget in missile.c
  */
 {}
 
-EventTrigScore (e)
+void EventTrigScore (e)
 int e;
 {
 	if (player.score >= event[e].ivalue) EventAction (e);
 }
 
-EventTrigAlarm (e)
+void EventTrigAlarm (e)
 int e;
 {
 	event[e].fvalue -= deltaT;
 	if (event[e].fvalue <= 0.0) EventAction (e);
 }
 
-EventAction (e)
+void EventAction (e)
 int e;
 /*
  *  Event e has occurred!
--- src/hud.c
+++ src/hud.c
@@ -40,7 +40,7 @@
 	0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff
 	};
 
-InitHud()
+void InitHud()
 /*
  *  Initialize the HUD
  */
@@ -95,7 +95,7 @@
 static GLubyte center_cursor[8] =
 	{ 0x10, 0x10, 0x00, 0xc6, 0x00, 0x10, 0x10, 0x00 };
 
-Hud()
+void Hud()
 /*
  *  Show the Heads Up Display
  */
@@ -208,7 +208,7 @@
 	glEnable (GL_LIGHTING);
 }
 
-RadarCoords (v, x, y)
+void RadarCoords (v, x, y)
 double v[3], *x, *y;
 /*
  *  Compute the two-D radar coordinates of an object
@@ -258,7 +258,7 @@
 	*y = radar.fcenter[1] + radar.fradius * r * radarCOS;
 }
 
-Radar()
+void Radar()
 /*
  *  Display the Wing Commander-like radar
  */
@@ -273,7 +273,7 @@
 	RadarWaypoint();
 }
 
-InitRadar()
+void InitRadar()
 /*
  *  Set up the radar coordinates
  */
@@ -288,12 +288,12 @@
 	radar.radius = (int) radar.fradius;
 }
 
-DrawRadarCircle()
+void DrawRadarCircle()
 {
 	glCallList (radar.list);
 }
 
-MakeRadarCircleList()
+void MakeRadarCircleList()
 /*
  *  Define the radar circle list
  */
@@ -393,7 +393,7 @@
 	glEndList();
 }
 
-RadarPlanets()
+void RadarPlanets()
 /*
  *  Draw the planets on the radar
  */
@@ -432,7 +432,7 @@
 	}
 }
 
-RadarTargets()
+void RadarTargets()
 /*
  *  Draw the targets on the radar
  */
@@ -483,7 +483,7 @@
 	glEnd();
 }
 
-RadarMissiles()
+void RadarMissiles()
 /*
  *  Draw the missiles on the radar
  */
@@ -511,7 +511,7 @@
 	glEnd();
 }
 
-RadarWaypoint()
+void RadarWaypoint()
 /*
  *  Draw the current waypoint
  */
@@ -529,7 +529,7 @@
 	glEnd();
 }
 
-LockNearest()
+void LockNearest()
 /*
  *  Lock onto the nearest target
  */
@@ -604,7 +604,7 @@
 	}
 }
 
-LockNext()
+void LockNext()
 /*
  *  Lock onto next target
  */
@@ -681,7 +681,7 @@
 	lock.target = old;
 }
 
-LockPrev()
+void LockPrev()
 /*
  *  Lock onto previous target
  */
@@ -757,7 +757,7 @@
 	lock.target = old;
 }
 
-CheckLock()
+void CheckLock()
 /*
  *  Sanity checks on the locked target
  */
@@ -810,7 +810,7 @@
 static GLubyte waypoint_cursor[8] =
 	{ 0x3c, 0x00, 0x81, 0x81, 0x81, 0x81, 0x00, 0x3c };
 
-DrawLock()
+void DrawLock()
 /*
  *  Draw the lock cursor
  */
@@ -879,7 +879,7 @@
 	}
 }
 
-DrawPlanetLock()
+void DrawPlanetLock()
 {
 	int p;
 	char v;
@@ -903,7 +903,7 @@
 	}
 }
 
-DrawWaypoint()
+void DrawWaypoint()
 {
 	int w;
 	char v;
@@ -925,7 +925,7 @@
 	}
 }
 
-DrawMotionCursors()
+void DrawMotionCursors()
 /*
  *  Show forward and reverse motion
  */
@@ -1061,7 +1061,7 @@
 	return (1);
 }
 
-ArcadeThrottle()
+void  ArcadeThrottle()
 /*
  *  Draw the throttle for arcade mode
  */
@@ -1114,7 +1114,7 @@
 	}
 }
 
-Throttle()
+void Throttle()
 /*
  *  Draw the throttle
  */
@@ -1188,7 +1188,7 @@
 	}
 }
 
-TargetStuff()
+void TargetStuff()
 /*
  *  Show stuff about the locked target
  */
@@ -1230,7 +1230,7 @@
 	}
 }
 
-WaypointStuff()
+void WaypointStuff()
 {
 	int w;
 	double r, v[3];
@@ -1247,7 +1247,7 @@
 	Print (GLUT_BITMAP_HELVETICA_10, buf);
 }
 
-PlayerVel()
+void PlayerVel()
 {
 	double r;
 	char buf[64];
@@ -1269,7 +1269,7 @@
 	Print (GLUT_BITMAP_HELVETICA_10, buf);
 }
 
-PlanetStuff()
+void PlanetStuff()
 {
 	int p;
 	double r;
@@ -1291,7 +1291,7 @@
 	Print (GLUT_BITMAP_HELVETICA_10, buf);
 }
 
-Shields()
+void Shields()
 /*
  *  Draw the shield status
  */
@@ -1349,7 +1349,7 @@
 	glDisable (GL_POLYGON_STIPPLE);
 }
 
-ShowWeapon()
+void ShowWeapon()
 /*
  *  Show the current weapon
  */
@@ -1367,7 +1367,7 @@
 	Print (GLUT_BITMAP_HELVETICA_10, weapon[player.weapon].name);
 }
 
-TargetShields (t)
+void TargetShields (t)
 int t;
 /*
  *  Draw the target's shield status
--- src/keyboard.c
+++ src/keyboard.c
@@ -158,7 +158,7 @@
 	return (j);
 }
 
-InitKeyboard()
+void InitKeyboard()
 /*
  *  Initialize the keyboard
  */
@@ -179,7 +179,7 @@
 	glutSpecialUpFunc (SpecUp);
 }
 
-Keyboard()
+void Keyboard()
 /*
  *  Read the keyboard
  */
@@ -668,7 +668,7 @@
 	}
 }
 
-PrintCompression()
+void PrintCompression()
 {
 	if (compression >= 1.0)
 	{
--- src/lights.c
+++ src/lights.c
@@ -30,7 +30,7 @@
 static float front_specular[]  =   { 1.0, 1.0, 1.0, 1.0 }; 
 /* static float front_specular[]  =   { 0.0, 0.7, 0.0, 1.0 }; */
 
-Lights()
+void Lights()
 {
 	int l;
 	double v[3];
@@ -84,7 +84,7 @@
 /*	glShadeModel (GL_FLAT);		*/
 }
 
-InitLights()
+void InitLights()
 /*
  *  Set up non-permanent light sources
  */
@@ -129,7 +129,7 @@
 	return (oldest);
 }
 
-DestroyLight (l)
+void DestroyLight (l)
 int l;
 /*
  *  Destroy specified light
--- src/log.c
+++ src/log.c
@@ -29,7 +29,7 @@
 
 FILE *logfd;
 
-InitLog()
+void InitLog()
 /*
  *  Open the log file
  */
@@ -49,7 +49,7 @@
 	return;
 }
 
-CloseLog()
+void CloseLog()
 /*
  *  Close up the log file
  */
@@ -82,7 +82,7 @@
 	va_end (ap);
 }
 
-LogWrite (buf, n)
+void LogWrite (buf, n)
 char *buf;
 int n;
 /*
--- src/missile.c
+++ src/missile.c
@@ -21,7 +21,7 @@
 
 #include "orbit.h"
 
-InitMissiles()
+void InitMissiles()
 /*
  *  Set up missile structures
  */
@@ -67,7 +67,7 @@
 	return (oldest);
 }
 
-FireMissile (pos, vel, dir, friendly, wep, owner)
+void FireMissile (pos, vel, dir, friendly, wep, owner)
 double pos[3], vel[3], dir[3];
 int friendly, wep, owner;
 /*
@@ -103,7 +103,7 @@
 	if (sound) PlayAudio (SOUND_FIRE);
 }
 
-MoveMissiles()
+void MoveMissiles()
 /*
  *  Move all the missiles
  */
@@ -175,7 +175,7 @@
 	}
 }
 
-DestroyMissile (m)
+void DestroyMissile (m)
 int m;
 /*
  *  Missile has expired 
@@ -184,7 +184,7 @@
 	msl[m].age = 0.0;
 }
 
-DrawMissiles ()
+void DrawMissiles ()
 /*
  *  Draw all the missiles
  */
@@ -197,7 +197,7 @@
 	}
 }
 
-DrawMissile (m)
+void DrawMissile (m)
 int m;
 /*
  *  Draw this missile
@@ -230,7 +230,7 @@
 	glPopMatrix();
 }
 
-DrawMissile0 (m)
+void DrawMissile0 (m)
 int m;
 {
 	double r, s, v[3];
@@ -255,7 +255,7 @@
 	glEnd();
 }
 
-DrawMissile1 (m)
+void DrawMissile1 (m)
 int m;
 {
 	double r, s, v[3];
@@ -280,7 +280,7 @@
 	glEnd();
 }
 
-DrawMissile2 (m)
+void DrawMissile2 (m)
 int m;
 {
 	double v1[3], v2[3], v3[3], v4[4], vel[3], v[3];
@@ -324,7 +324,7 @@
 	glEnd();
 }
 
-DrawMissile3 (m)
+void DrawMissile3 (m)
 int m;
 {
 	double r, s, v[3];
@@ -343,7 +343,7 @@
 	glutSolidTetrahedron ();
 }
 
-DrawMissile4 (m)
+void DrawMissile4 (m)
 int m;
 {
 	int i;
@@ -365,7 +365,7 @@
 	glEnd();
 }
 
-MissileHitPlayer (m)
+void MissileHitPlayer (m)
 int m;
 /*
  *  Missile m hit player.  Ouch!
@@ -401,7 +401,7 @@
 	if (player.shields < 0.0) player.shields = 100.0;
 }
 
-MissileHitTarget (m, t)
+void MissileHitTarget (m, t)
 int m, t;
 /*
  *  Missile m hit target t.  Go get 'em!
--- src/mission.c
+++ src/mission.c
@@ -35,7 +35,7 @@
 #define TRIGGER 0
 #define ACTION 1
 
-ReadMission (msn)
+void ReadMission (msn)
 char *msn;
 /*
  *  Read a mission file
@@ -148,7 +148,7 @@
 	return (GetToken());		
 }
 
-RotateTokens()
+void RotateTokens()
 {
 	int i;
 
@@ -156,7 +156,7 @@
 	strcpy (tokens[0], token);
 }
 
-ShowTokens()
+void ShowTokens()
 {
 	Log ("Recent tokens: %s %s %s %s %s %s %s %s %s %s",
 		tokens[9], tokens[8], tokens[7], tokens[6], tokens[5],
@@ -202,9 +202,10 @@
 		CloseLog();
 		exit (0);
 	}
+return 0;
 }
 
-Cursor()
+void Cursor()
 {
 	int xyzflag, relflag;
 	double x;
@@ -298,7 +299,7 @@
 	return 0;
 }
 
-Player()
+void Player()
 {
 	GetBrace();
 
@@ -324,7 +325,7 @@
 	}
 }
 
-Waypoint()
+void Waypoint()
 {
 	GetBrace();
 
@@ -341,7 +342,7 @@
 	}
 }
 
-Briefing()
+void Briefing()
 {
 	mission.briefing[0] = 0;
 
@@ -360,14 +361,14 @@
 	}
 }
 
-UnrecognizedToken()
+void UnrecognizedToken()
 {
 	Log ("UnrecognizedToken: Skipping unrecognized token \"%s\" in %s",
 		token, mission.fn);
 	ShowTokens();
 }
 
-Object()
+void Object()
 {
 	int t;
 
@@ -434,7 +435,7 @@
 	}
 }
 
-ObjMaxshields (t)
+void ObjMaxshields (t)
 int t;
 {
 	GetRequiredToken();
@@ -445,7 +446,7 @@
 		Log ("ObjMaxshields: Object %d shields set to %lf", t, target[t].shields);
 }
 
-ObjShieldregen (t)
+void ObjShieldregen (t)
 int t;
 {
 	GetRequiredToken();
@@ -455,7 +456,7 @@
 		Log ("ObjShieldregen: Object %d regen set to %lf", t, target[t].shieldregen);
 }
 
-ObjTurnrate (t)
+void ObjTurnrate (t)
 int t;
 {
 	GetRequiredToken();
@@ -465,7 +466,7 @@
 		Log ("ObjTurnrate: Object %d turnrate set to %lf", t, target[t].turnrate);
 }
 
-ObjSpeed (t)
+void ObjSpeed (t)
 int t;
 {
 	GetRequiredToken();
@@ -475,7 +476,7 @@
 		Log ("ObjSpeed: Object %d speed set to %lf", t, target[t].maxvel);
 }
 
-ObjModel (t)
+void ObjModel (t)
 int t;
 {
 	int m;
@@ -497,7 +498,7 @@
 		Log ("ObjModel: Object %d model set to %s", t, model[m].name);
 }
 
-ObjScore (t)
+void ObjScore (t)
 int t;
 {
 	GetRequiredToken();
@@ -508,7 +509,7 @@
 					t, target[t].score);
 }
 
-ObjName (t)
+void ObjName (t)
 {
 	GetRequiredToken();
 
@@ -518,7 +519,7 @@
 					t, target[t].name);
 }
 
-ObjStrategy (t)
+void ObjStrategy (t)
 int t;
 {
 	GetRequiredToken();
@@ -568,7 +569,7 @@
 	}
 }
 
-ObjHidden (t)
+void ObjHidden (t)
 int t;
 {
 	target[t].hidden = 1;
@@ -577,7 +578,7 @@
 		Log ("ObjHidden: Object %d is hidden", t);
 }
 
-ObjInvisible (t)
+void ObjInvisible (t)
 int t;
 {
 	target[t].invisible = 1;
@@ -586,7 +587,7 @@
 		Log ("ObjInvisible: Object %d is invisible", t);
 }
 
-ObjFriendly (t)
+void ObjFriendly (t)
 int t;
 {
 	target[t].friendly = 1;
@@ -595,7 +596,7 @@
 		Log ("ObjFriendly: Object %d is friendly", t);
 }
 
-ObjWeapon (t)
+void ObjWeapon (t)
 int t;
 {
 	GetRequiredToken();
@@ -608,7 +609,7 @@
 		Log ("ObjWeapon: Object %d weapon set to %d", t, target[t].weapon);
 }
 
-Event()
+void Event()
 {
 	int e, a;
 
@@ -677,7 +678,7 @@
 	}
 }
 
-EvName (e)
+void EvName (e)
 int e;
 {
 	GetRequiredToken();
@@ -687,7 +688,7 @@
 		Log ("EvName: Event %d named %s", e, token);
 }
 
-EvTrigger (e)
+void EvTrigger (e)
 int e;
 {
 	GetRequiredToken();
@@ -708,7 +709,7 @@
 	else UnrecognizedToken();
 }
 
-EvAction (e)
+void EvAction (e)
 int e;
 {
 	/* Bump action index */
@@ -748,7 +749,7 @@
 	else UnrecognizedToken();
 }
 
-EvValue (e)
+void EvValue (e)
 int e;
 {
 	char buf[4096];
@@ -809,7 +810,7 @@
 	}
 }
 
-Weapon()
+void Weapon()
 /*
  *  Handle weapon token
  */
@@ -839,7 +840,7 @@
 	}
 }
 
-WeaponIndex()
+void WeaponIndex()
 {
 	int w;
 
@@ -855,7 +856,7 @@
 	}
 }
 
-WeaponName()
+void WeaponName()
 {
 	GetToken();
 
@@ -866,7 +867,7 @@
 		Log ("WeaponName: Weapon %d named %s", weapon_index, token);
 }
 
-WeaponSpeed()
+void WeaponSpeed()
 {
 	GetToken();
 
@@ -877,7 +878,7 @@
 		Log ("WeaponSpeed: Weapon %d speed is %lf", weapon_index, weapon[weapon_index].speed);
 }
 
-WeaponYield()
+void WeaponYield()
 {
 	GetToken();
 
@@ -888,7 +889,7 @@
 		Log ("WeaponYield: Weapon %d yield is %lf", weapon_index, weapon[weapon_index].yield);
 }
 
-WeaponIdle()
+void WeaponIdle()
 {
 	GetToken();
 
@@ -899,7 +900,7 @@
 		Log ("WeaponIdle: Weapon %d idle is %lf", weapon_index, weapon[weapon_index].idle);
 }
 
-WeaponExpire()
+void WeaponExpire()
 {
 	GetToken();
 
@@ -910,7 +911,7 @@
 		Log ("WeaponExpire: Weapon %d expire is %lf", weapon_index, weapon[weapon_index].expire);
 }
 
-WeaponRenderer()
+void WeaponRenderer()
 {
 	int r;
 
@@ -932,7 +933,7 @@
 	}
 }
 
-WeaponColor()
+void WeaponColor()
 {
 	int c, r, g, b;
 
@@ -950,7 +951,7 @@
 	weapon[weapon_index].color[2] = ((float) b) / 256.0;
 }
 
-Planet()
+void Planet()
 /*
  *  Handle the planet token
  */
@@ -974,7 +975,7 @@
 	}
 }
 
-PlanetOblicity()
+void PlanetOblicity()
 {
 	GetToken();
 	if (planet_index == (-1)) return;
@@ -986,7 +987,7 @@
 			planet[planet_index].name, planet[planet_index].oblicity);
 }
 
-PlanetRadius()
+void PlanetRadius()
 {
 	int p;
 
@@ -1005,7 +1006,7 @@
 			planet[planet_index].name, planet[planet_index].radius);
 }
 
-PlanetMap()
+void PlanetMap()
 {
 	GetToken();
 	if (planet_index == (-1)) return;
@@ -1022,7 +1023,7 @@
 			planet[planet_index].name, planet[planet_index].texfname);
 }
 
-PlanetHidden()
+void PlanetHidden()
 {
 	if (planet_index == (-1)) return;
 	planet[planet_index].hidden = 1;
@@ -1031,7 +1032,7 @@
 		Log ("PlanetHidden: %s is hidden", planet[planet_index].name);
 }
 
-PlanetReposition()
+void PlanetReposition()
 {
 	if (planet_index == (-1)) return;
 	Vset (planet[planet_index].pos, mission.cursor);
@@ -1042,7 +1043,7 @@
 			mission.cursor[0], mission.cursor[1], mission.cursor[2]);
 }
 
-PlanetName()
+void PlanetName()
 {
 	int p;
 
@@ -1060,7 +1061,7 @@
 		Log ("PlanetName: Modifying planet %s (index %d)", token, p);
 }
 
-PlanetNewname()
+void PlanetNewname()
 {
 	GetToken();
 	if (planet_index == (-1)) return;
@@ -1071,7 +1072,7 @@
 		Log ("PlanetNewname: Planet %d renamed to %s", planet_index, token);
 }
 
-Include()
+void Include()
 /*
  *  Open a new include file
  */
--- src/model.c
+++ src/model.c
@@ -26,7 +26,7 @@
  *  Models are stored as "triangle" files in the "models" directory.
  */
 
-InitModels()
+void InitModels()
 /*
  *  Set up models structures
  */
@@ -41,7 +41,7 @@
 	}
 }
 
-ResetModels()
+void ResetModels()
 /*
  *  Get rid of all models
  */
@@ -207,7 +207,7 @@
 	return (m);
 }
 
-MakeStrips()
+void MakeStrips()
 /*
  *  Since the triangle model consists of sparse triangles and we
  *  want to use triangle strips for performance, this routine slices
@@ -368,7 +368,7 @@
 	return (-1);
 }
 
-flop (t)
+void flop (t)
 int t;
 {
 	int v;
@@ -403,13 +403,13 @@
 	return (nverts-1);
 }
 
-Vertex (v)
+void Vertex (v)
 int v;
 {
 	glVertex3d (vert[v].v[0], vert[v].v[1], vert[v].v[2]);
 }
 
-Normal (t)
+void Normal (t)
 int t;
 {
 	float color[3];
@@ -426,7 +426,7 @@
 	glNormal3dv (tri[t].norm);
 }
 
-ModelBounds (m)
+void ModelBounds (m)
 int m;
 /*
  *  Construct bounding box of model m
@@ -464,7 +464,7 @@
 	model[m].radius2 = model[m].radius * model[m].radius;
 }
 
-ScaleModel (m)
+void ScaleModel (m)
 /*
  *  Make models a uniform size
  */
--- src/mouse.c
+++ src/mouse.c
@@ -53,7 +53,7 @@
 	mouse.y = y;
 }
 
-InitMouse()
+void InitMouse()
 /*
  *  Initialize the mouse
  */
@@ -72,7 +72,7 @@
 	}
 }
 
-DoMouse()
+void DoMouse()
 /*
  *  Check for mouse movement
  */
--- src/network.c
+++ src/network.c
@@ -41,7 +41,7 @@
 
 int endian;	/* Endian for transmitting network values */
 
-InitNetwork()
+void InitNetwork()
 /*
  *  Initialize network data structures
  */
@@ -95,7 +95,7 @@
 	return 1;
 }
 
-int CloseNetwork()
+void CloseNetwork()
 /*
  *  Close Winsock
  */
@@ -327,7 +327,7 @@
 	return 1;
 }
 
-DoNetwork()
+void DoNetwork()
 /*
  *  Process network activity
  */
@@ -373,7 +373,7 @@
 	xmit_bytes += len;
 }
 
-XmitBinaryPacket (socket, buf, len)
+void  XmitBinaryPacket (socket, buf, len)
 SOCKET socket;
 char *buf;
 int len;
@@ -401,7 +401,7 @@
 	send (socket, pkt, len+2, 0);
 }
 
-ShutdownClient()
+void ShutdownClient()
 /*
  *  Undo being a client
  */
@@ -431,7 +431,7 @@
 	InitTargets();
 }
 
-ShutdownServer()
+void ShutdownServer()
 /*
  *  Stop being a server
  */
@@ -472,7 +472,7 @@
 	InitNetwork();
 }
 
-ShutdownNetwork()
+void ShutdownNetwork()
 /*
  *  Shut down all network connections and services
  */
@@ -483,7 +483,7 @@
 	if (am_client) ShutdownClient();
 }
 
-DropClient (c)
+void DropClient (c)
 int c;
 /*
  *  Hang up on client c
@@ -515,7 +515,7 @@
 	DestroyTarget (client[c].target);
 }
 
-QueuePositionReport()
+void QueuePositionReport()
 /*
  *  Force our position to be sent
  */
@@ -554,7 +554,7 @@
 	return t;
 }
 
-NetHitTarget (t, m)
+void NetHitTarget (t, m)
 int t, m;
 /*
  *  Target t was hit by missile m
@@ -578,7 +578,7 @@
 	}
 }
 
-NetDestroyTarget (t, m)
+void NetDestroyTarget (t, m)
 int t, m;
 /*
  *  Target t was destroyed by missile m
@@ -598,7 +598,7 @@
 	NetDestroyClient (cvictim, ckiller);
 }
 
-NetDestroyClient (cv, ck)
+void  NetDestroyClient (cv, ck)
 int cv, ck;
 /*
  *  Client cv was killed by client ck
@@ -629,7 +629,7 @@
 	CheckLock();
 }
 
-NetTargetCratered (t, p)
+void NetTargetCratered (t, p)
 int t, p;
 /*
  *  Target t cratered on planet p
@@ -682,7 +682,7 @@
 	return server.client;
 }
 
-NetClientFires (clnt, wep)
+void NetClientFires (clnt, wep)
 int clnt, wep;
 /*
  *  Client clnt has fired weapon wep
@@ -716,7 +716,7 @@
 	}
 }
 
-NetPlayerDies()
+void NetPlayerDies()
 /*
  *  We died in a network game
  */
@@ -824,7 +824,7 @@
 	return 0;
 }
 
-EncFloat (d, c)
+void EncFloat (d, c)
 double d;
 unsigned char *c;
 /*
@@ -888,7 +888,7 @@
 	return (double) u.f;
 }
 
-EncVector (double v[3], char *c)
+void EncVector (double v[3], char *c)
 /*
  *  Encode a whole vector
  */
@@ -898,7 +898,7 @@
 	EncFloat (v[2], &c[8]);
 }
 
-EncUnitVector (double v[3], char *c)
+void EncUnitVector (double v[3], char *c)
 /*
  *  Encode vector of unit floats
  */
@@ -908,7 +908,7 @@
 	c[2] = EncUnitFloat (v[2]);
 }
 
-DecVector (v, c)
+void DecVector (v, c)
 double v[3];
 unsigned char *c;
 /*
@@ -951,7 +951,7 @@
 	return d;
 }
 
-DecUnitVector (v, c)
+void DecUnitVector (v, c)
 double v[3];
 unsigned char *c;
 {
--- src/orbit.c
+++ src/orbit.c
@@ -69,9 +69,10 @@
 
 	/* Loop forever */
 	glutMainLoop();
+return 0;
 }
 
-OpenWindow (argc, argv)
+void OpenWindow (argc, argv)
 int argc;
 char *argv[];
 /*
@@ -114,7 +115,7 @@
 	Log ("OpenWindow: OpenGL version: %s", p);
 }
 
-CreateUniverse ()
+void CreateUniverse ()
 /*
  *  And Then There Was Light
  */
@@ -350,7 +351,7 @@
 static double MissileColor[] = {1.0, 1.0, 0.0, 1.0};
 static float TargetColor[] = {1.0, 0.5, 0.0, 1.0};
 
-DrawWorld ()
+void DrawWorld ()
 /*
  *  Draw the world
  */
@@ -381,7 +382,7 @@
 	if (show_names) ShowNames();
 }
 
-Print (font, string)
+void Print (font, string)
 void *font;
 char *string;
 {
@@ -394,7 +395,7 @@
 	}
 }
 
-InitStuff()
+void InitStuff()
 /*
  *  Misc initilization
  *
@@ -537,7 +538,7 @@
 }
 #endif
 
-Gravity (deltav, pos)
+void Gravity (deltav, pos)
 double deltav[3], pos[3];
 /*
  *  Compute change in velocity due to planet's gravity
@@ -571,7 +572,7 @@
 	}
 }
 
-Junk()
+void Junk()
 /*
  *  Draw space junk to give visual cues of motion
  */
@@ -600,7 +601,7 @@
 	glEnable (GL_LIGHTING);
 }
 
-PieceOfJunk (x, y, z)
+void PieceOfJunk (x, y, z)
 double x, y, z;
 /*
  *  Draw a single piece of space junk
@@ -630,7 +631,7 @@
 	glPopMatrix();
 }
 
-ShowNames()
+void ShowNames()
 /*
  *  Show the names of things
  */
@@ -643,7 +644,7 @@
 	glEnable (GL_DEPTH_TEST);
 }
 
-LookAt (view, up)
+void LookAt (view, up)
 double view[3], up[3];
 /*
  *  Set up a transformation so a model will be drawn pointing the
--- src/planet.c
+++ src/planet.c
@@ -25,7 +25,7 @@
 static float specular[] = {0.0, 0.0, 0.0, 1.0};
 static float emission[] = {0.0, 0.0, 0.0, 1.0};
 
-DrawPlanets()
+void DrawPlanets()
 /*
  *  Draw all the planets
  */
@@ -41,7 +41,7 @@
 	}
 }
 
-DrawPlanet (p)
+void DrawPlanet (p)
 int p;
 /*
  *  Draw the pretty planet
@@ -146,7 +146,7 @@
 	glPopMatrix();
 }
 
-MakePlanetLists()
+void MakePlanetLists()
 /*
  *  Define planet display lists
  */
@@ -170,7 +170,7 @@
 	MakeOrbitLists();
 }
 
-MakePlanetList (p)
+void MakePlanetList (p)
 int p;
 /*
  *  Make planet lists for planet p
@@ -203,7 +203,7 @@
 	glEndList();
 }
 
-MakeSunList()
+void MakeSunList()
 /*
  *  Make Sol's display list
  */
@@ -245,7 +245,7 @@
 	glEndList();
 }
 
-ReadPlanetTexture (p)
+void ReadPlanetTexture (p)
 int p;
 /*
  *  Read in the planet's texture
@@ -328,7 +328,7 @@
 	fclose (fd);
 }
 
-InitPlanets()
+void InitPlanets()
 /*
  *  All sorts of planet initialization
  */
@@ -349,7 +349,7 @@
 	ResetPlanets();
 }
 
-ResetPlanets()
+void ResetPlanets()
 /*
  *  Set planets back to the way they should be at start
  */
@@ -707,7 +707,7 @@
 	MakePlanetLists();
 }
 
-RandomPlanets()
+void RandomPlanets()
 /*
  *  Randomly set solar angle for each planet
  */
@@ -722,7 +722,7 @@
 	}
 }
 
-PositionPlanets()
+void PositionPlanets()
 /*
  *  Turn planet angles into Cartesian coordinates
  */
@@ -785,7 +785,7 @@
 	return (-1);
 }
 
-ShowPlanetNames()
+void ShowPlanetNames()
 {
 	int p;
 	unsigned char v;
@@ -840,7 +840,7 @@
 	}
 }
 
-Sphere (r, slices, sectors)
+void Sphere (r, slices, sectors)
 double r;
 int slices, sectors;
 {
@@ -870,7 +870,7 @@
 	return (-1);
 }
 
-MakeOrbitLists()
+void MakeOrbitLists()
 /*
  *  Construct display lists for orbits
  */
@@ -916,7 +916,7 @@
 	}
 }
 
-DrawOrbits()
+void DrawOrbits()
 /*
  *  Draw orbital paths
  */
@@ -956,7 +956,7 @@
 	glPopMatrix();
 }
 
-MovePlanets()
+void MovePlanets()
 /*
  *  Move planets in their orbits
  */
--- src/player.c
+++ src/player.c
@@ -21,7 +21,7 @@
 
 #include "orbit.h"
 
-InitPlayer()
+void InitPlayer()
 /*
  *  Set up initial player position, etc.
  */
@@ -292,7 +292,7 @@
 	}
 }
 
-UpdatePlayer()
+void UpdatePlayer()
 /*
  *  Update all sorts of stuff for the player
  */
@@ -319,7 +319,7 @@
 	}
 }
 
-PlayerFires()
+void PlayerFires()
 /*
  *  Player maybe fires a missile
  */
@@ -379,7 +379,7 @@
 	strcpy (player.name, text.buf);
 }
 
-ViewLock()
+void ViewLock()
 /*
  *  Aim player toward locked object
  */
--- src/prefs.c
+++ src/prefs.c
@@ -25,7 +25,7 @@
  *  Read and write the preferences file
  */
 
-WritePrefs()
+void WritePrefs()
 {
 	FILE *fd;
         const char *homeDir = getenv("HOME");
@@ -96,7 +96,7 @@
 	fclose (fd);
 }
 
-ReadPrefs()
+void ReadPrefs()
 {
 	FILE *fd;
 	char c1[64], c2[64];
--- src/rings.c
+++ src/rings.c
@@ -21,7 +21,7 @@
 
 #include "orbit.h"
 
-InitRings()
+void InitRings()
 /*
  *  Initialize rings
  */
@@ -60,7 +60,7 @@
 	}
 }
 
-ReadRingTexture (r)
+void ReadRingTexture (r)
 int r;
 /*
  *  Read texture for planetary rings
@@ -123,7 +123,7 @@
 
 static float MaterialColor[] = {1.0, 1.0, 1.0, 1.0};
 
-MakeRingList (r)
+void MakeRingList (r)
 int r;
 /*
  *  Make the display list for planetary rings
@@ -229,7 +229,7 @@
 
 float TransColor[4] = {1.0, 1.0, 1.0, 0.5};
 	
-DrawRings()
+void DrawRings()
 /*
  *  Render those pretty rings
  */
--- src/save.c
+++ src/save.c
@@ -25,7 +25,7 @@
  *  Routines to save and load missions
  */
 
-ReadSaves()
+void ReadSaves()
 /*
  *  Write the save file
  */
@@ -68,7 +68,7 @@
 	return;
 }
 
-WriteSaves()
+void WriteSaves()
 /*
  *  Write the save file
  */
@@ -102,7 +102,7 @@
 	return;
 }
 
-AddSave (fn)
+void AddSave (fn)
 char *fn;
 /*
  *  Add a mission to the list of saves
@@ -147,7 +147,7 @@
 	WriteSaves();
 }
 
-LoadGame()
+void LoadGame()
 /*
  *  Sparky wants to load a game
  */
@@ -191,7 +191,7 @@
 	Mprint (buf);
 }
 
-LoadGameByKey (k)
+void LoadGameByKey (k)
 int k;
 /*
  *  Load game depending on the key Sparky pressed
--- src/screenshot.c
+++ src/screenshot.c
@@ -21,7 +21,7 @@
 
 #include "orbit.h"
 
-ScreenShot()
+void ScreenShot()
 {
 	char fname[32];
 	char *screen;
--- src/server.c
+++ src/server.c
@@ -39,7 +39,7 @@
  *  All sorts of stuff the server does
  */
 
-DoServer()
+void DoServer()
 /*
  *  I am an ORBIT server
  */
@@ -56,7 +56,7 @@
 	}
 }
 
-DoThisClient (c)
+void DoThisClient (c)
 int c;
 /*
  *  Server handles client c
@@ -93,7 +93,7 @@
 
 }
 
-SendToClient (c)
+void SendToClient (c)
 int c;
 /*
  *  Send anything we have to send to this client
@@ -140,7 +140,7 @@
 **/
 }
 
-ReadFromClient (c)
+void ReadFromClient (c)
 int c;
 /*
  *  See if this client has anything to say to us
@@ -213,7 +213,7 @@
 	ClientData (c, buf, r);
 }
 
-ClientData (c, buf, n)
+void ClientData (c, buf, n)
 int c, n;
 char *buf;
 /*
@@ -247,7 +247,7 @@
 #endif
 }
 
-ClientByte (c, b)
+void ClientByte (c, b)
 int c;
 char b;
 /*
@@ -287,7 +287,7 @@
 	}
 }
 
-CheckForClient()
+void CheckForClient()
 /*
  *  Look for a new network client
  */
@@ -401,7 +401,7 @@
 	}
 }
 
-ClientPacket (c, pkt)
+void ClientPacket (c, pkt)
 int c;
 char *pkt;
 /*
@@ -481,7 +481,7 @@
 	}
 }
 
-ClientBinaryPacket (c, pkt)
+void ClientBinaryPacket (c, pkt)
 int c;
 unsigned char *pkt;
 /*
@@ -509,7 +509,7 @@
 	}
 }
 
-ClientPing (c, pkt)
+void ClientPing (c, pkt)
 int c;
 char *pkt;
 /*
@@ -545,7 +545,7 @@
 	}
 }
 
-ClientBinaryPing (c, pkt)
+void ClientBinaryPing (c, pkt)
 int c;
 char *pkt;
 /*
@@ -576,7 +576,7 @@
 	}
 }
 
-ShowClients ()
+void ShowClients ()
 /*
  *  Give list of clients
  */
@@ -626,7 +626,7 @@
 	Mprint (buf);
 }
 
-ClientName (c, pkt)
+void ClientName (c, pkt)
 int c;
 char *pkt;
 /*
@@ -654,7 +654,7 @@
 	}
 }
 
-ClientModel (c, pkt)
+void ClientModel (c, pkt)
 int c;
 char *pkt;
 /*
@@ -691,7 +691,7 @@
 	}
 }
 
-ClientPosition (c, pkt, urgent)
+void ClientPosition (c, pkt, urgent)
 int c, urgent;
 char *pkt;
 /*
@@ -738,7 +738,7 @@
 	}
 }
 
-ClientBinaryPosition (c, pkt, urgent)
+void ClientBinaryPosition (c, pkt, urgent)
 int c, urgent;
 unsigned char *pkt;
 /*
@@ -782,7 +782,7 @@
 	}
 }
 
-ClientVersion (c, pkt)
+void ClientVersion (c, pkt)
 int c;
 char *pkt;
 /*
@@ -811,7 +811,7 @@
 	}
 }
 
-ClientFire (c, pkt)
+void ClientFire (c, pkt)
 int c;
 char *pkt;
 /*
@@ -838,7 +838,7 @@
 	NetClientFires (c, w);
 }
 
-SendPositions (clnt)
+void SendPositions (clnt)
 int clnt;
 /*
  *  THIS IS NOT CALLED!
@@ -879,7 +879,7 @@
 	}
 }
 
-SendPosition (clnt, c)
+void SendPosition (clnt, c)
 int clnt, c;
 /*
  *  Report c's position to clnt
@@ -907,7 +907,7 @@
 	}
 }
 
-SendPositionShort (clnt, c)
+void SendPositionShort (clnt, c)
 int clnt, c;
 /*
  *  Send short position of client c to client clnt
@@ -928,7 +928,7 @@
 #endif
 }
 
-SendPositionLong (clnt, c)
+void SendPositionLong (clnt, c)
 int clnt, c;
 /*
  *  Send long position of client c to client clnt
@@ -957,7 +957,7 @@
 #endif
 }
 
-SendPlanets (c)
+void SendPlanets (c)
 int c;
 /*
  *  Send planet positions to client
@@ -977,7 +977,7 @@
 	SendASCIIPacket (client[c].socket, "RPLN");
 }
 
-SendRollCall (c)
+void SendRollCall (c)
 /*
  *  Send roll call to client c
  */
@@ -1035,7 +1035,7 @@
 	SendPlanets (c);
 }
 
-SendBinaryVacant (c)
+void SendBinaryVacant (c)
 /*
  *  Send binary vacancy report to client c
  */
@@ -1061,7 +1061,7 @@
 	SendBinaryPacket (client[c].socket, "ccc", PKT_VCNT, i1, i2);
 }
 
-ClientChat (c, pkt)
+void ClientChat (c, pkt)
 int c;
 char *pkt;
 /*
@@ -1088,7 +1088,7 @@
 	}
 }
 
-SendFlags()
+void SendFlags()
 /*
  *  Send gravity, etc., flags to clients
  */
--- src/stars.c
+++ src/stars.c
@@ -26,7 +26,7 @@
  *  Stuff for the background starfield
  */
 
-ReadStars()
+void ReadStars()
 /*
  *  Read in the stellar database
  */
@@ -81,7 +81,7 @@
 	}
 }
 
-DrawStars()
+void DrawStars()
 /*
  *  "My god.  It's full of stars."
  */
@@ -105,7 +105,7 @@
 /*	glEnable (GL_LIGHT0);	*/
 }
 
-MakeStarList()
+void MakeStarList()
 /*
  *  Construct display list for starfield
  */
--- src/target.c
+++ src/target.c
@@ -21,7 +21,7 @@
 
 #include "orbit.h"
 
-InitTargets()
+void InitTargets()
 /*
  *  Set up targets
  */
@@ -97,7 +97,7 @@
 	return (-1);
 }
 
-PlaceTarget (x, y, z)
+void PlaceTarget (x, y, z)
 double x, y, z;
 /*
  *  Put a brand new target somewhere
@@ -142,7 +142,7 @@
 	target[t].list = model[0].list;
 }
 
-PlaceRandomTarget()
+void PlaceRandomTarget()
 /*
  *  Put a target somewhere reasonable, randomly
  */
@@ -158,7 +158,7 @@
 	PlaceTarget (x, y, z);
 }
 
-DestroyTarget (t)
+void DestroyTarget (t)
 int t;
 /*
  *  Destroy specified target
@@ -188,7 +188,7 @@
 
 static float lmodel_ambient[] = { 0.1, 0.1, 0.1, 1.0 };
 
-DrawTargets ()
+void DrawTargets ()
 /*
  *  Draw all the targets
  */
@@ -208,7 +208,7 @@
 	glShadeModel (GL_SMOOTH);
 }
 
-DrawTarget (i)
+void DrawTarget (i)
 int i;
 /*
  *  Draw this target
@@ -265,7 +265,7 @@
 	glPopMatrix();
 }
 
-MoveTargets()
+void MoveTargets()
 /*
  *  Move all the targets
  */
@@ -296,7 +296,7 @@
 	}
 }
 
-MoveTarget (t)
+void MoveTarget (t)
 int t;
 /*
  *  Move this target
@@ -427,7 +427,7 @@
 		target[t].shields = target[t].maxshields;
 }
 
-TargetFiresMissile (t)
+void TargetFiresMissile (t)
 int t;
 /*
  *  Target t tries to fire missile at player
@@ -442,7 +442,7 @@
 	}
 }
 
-ShowTargetNames()
+void ShowTargetNames()
 {
 	int t;
 	char v, buf[128];
--- src/think.c
+++ src/think.c
@@ -33,7 +33,7 @@
 #define THINK_CUTOFFC (500.0 / KM_TO_UNITS1)
 #define THINK_CUTOFFC2 (THINK_CUTOFFC * THINK_CUTOFFC)
 
-ThinkTarget (t)
+void ThinkTarget (t)
 int t;
 /*
  *  Give this target a chance to think about what it wants to do
@@ -81,7 +81,7 @@
 	}
 }
 
-ThinkSit1 (t)
+void ThinkSit1 (t)
 int t;
 /*
  *  Don't move, just turn toward player and shoot
@@ -90,7 +90,7 @@
 	TurnToward (t, player.pos);
 }
 
-ThinkSit2 (t)
+void ThinkSit2 (t)
 int t;
 /*
  *  Don't move, just turn toward player and shoot
@@ -109,7 +109,7 @@
 	TurnToward (t, v);
 }
 
-ThinkSit3 (t)
+void ThinkSit3 (t)
 int t;
 /*
  *  Don't move, just turn toward nearest enemy and shoot poorly
@@ -121,7 +121,7 @@
 	TurnToward (t, pos);
 }
 
-ThinkSit4 (t)
+void ThinkSit4 (t)
 int t;
 /*
  *  Don't move, just turn toward nearest enemy and shoot well
@@ -140,7 +140,7 @@
 	TurnToward (t, v);
 }
 
-ThinkHunt1 (t)
+void ThinkHunt1 (t)
 int t;
 /*
  *  Move toward player and shoot
@@ -149,7 +149,7 @@
 	MoveToward (t, player.pos);
 }
 
-ThinkHunt2 (t)
+void ThinkHunt2 (t)
 int t;
 /*
  *  Move toward aiming point and shoot
@@ -168,7 +168,7 @@
 	MoveToward (t, v);
 }
 
-ThinkHunt3 (t)
+void ThinkHunt3 (t)
 int t;
 /*
  *  Move toward closest enemy and shoot poorly
@@ -180,7 +180,7 @@
 	MoveToward (t, pos);
 }
 
-ThinkHunt4 (t)
+void ThinkHunt4 (t)
 int t;
 /*
  *  Move toward closest enemy and shoot well
@@ -199,7 +199,7 @@
 	MoveToward (t, v);
 }
 
-TurnToward (t, pos)
+void TurnToward (t, pos)
 int t;
 double pos[3];
 {
@@ -263,7 +263,7 @@
 	}
 }
 
-MoveToward (t, pos)
+void MoveToward (t, pos)
 int t;
 double pos[3];
 {
--- src/timer.c
+++ src/timer.c
@@ -33,7 +33,7 @@
 	return (elapsed/1000.0);
 }
 
-InitTimer()
+void InitTimer()
 /*
  *  Check for and initialize the performance timer
  */
--- src/util.c
+++ src/util.c
@@ -88,7 +88,7 @@
 	vp[2] = X * g + Y * h + Z * i;
 }
 
-Normalize (v)
+void Normalize (v)
 double v[3];
 {
 	double Mag(), vt[3];
@@ -114,7 +114,7 @@
 	return (a[0]*a[0] + a[1]*a[1] + a[2]*a[2]);
 }
 
-Vadd (a, b, c)
+void Vadd (a, b, c)
 double a[3], b[3], c[3];
 {
 	a[0] = b[0] + c[0];
@@ -122,7 +122,7 @@
 	a[2] = b[2] + c[2];
 }
 
-Vsub (a, b, c)
+void Vsub (a, b, c)
 double a[3], b[3], c[3];
 {
 	a[0] = b[0] - c[0];
@@ -130,7 +130,7 @@
 	a[2] = b[2] - c[2];
 }
 
-Crossp (c, a, b)
+void Crossp (c, a, b)
 double a[3], b[3], c[3];
 {
 	c[0] = a[1]*b[2] - a[2]*b[1];
@@ -138,7 +138,7 @@
 	c[2] = a[0]*b[1] - a[1]*b[0];
 }
 
-Vdiv (a, b, s)
+void Vdiv (a, b, s)
 double a[3], b[3], s;
 {
 	a[0] = b[0] / s;
@@ -146,7 +146,7 @@
 	a[2] = b[2] / s;
 }
 
-Vmul (a, b, s)
+void Vmul (a, b, s)
 double a[3], b[3], s;
 {
 	a[0] = b[0] * s;
@@ -154,7 +154,7 @@
 	a[2] = b[2] * s;
 }
 
-Vset (a, b)
+void Vset (a, b)
 double a[3], b[3];
 {
 	a[0] = b[0];
@@ -200,7 +200,7 @@
 	exit (0);
 }
 
-Perp (v1, v)
+void Perp (v1, v)
 double v1[3], v[3];
 /*
  *  Find a vector v1 perpendicular to non-zero vector v
--- src/waypoint.c
+++ src/waypoint.c
@@ -25,7 +25,7 @@
  *  Routines to implement waypoints
  */
 
-InitWaypoints()
+void InitWaypoints()
 /*
  *  Reset waypoints
  */
@@ -43,7 +43,7 @@
 	}
 }
 
-AddWaypoint (v)
+void AddWaypoint (v)
 double v[3];
 /*
  *  Define a new waypoint
@@ -59,7 +59,7 @@
 	nwaypoints++;
 }
 
-NextWaypoint()
+void NextWaypoint()
 /*
  *  Advance to next waypoint
  */
@@ -81,7 +81,7 @@
 	}
 }
 
-PrevWaypoint()
+void PrevWaypoint()
 /*
  *  Back to previous waypoint
  */
--- src/weapon.c
+++ src/weapon.c
@@ -25,7 +25,7 @@
  *  Stuff for weapons
  */
 
-InitWeapons()
+void InitWeapons()
 /*
  *  Set them up
  */
@@ -90,7 +90,7 @@
 	WeaponRanges();
 }
 
-WeaponRanges()
+void WeaponRanges()
 /*
  *  Compute weapon range for all weapons
  */
openSUSE Build Service is sponsored by