Supply prototypes where possible. This uncovered type errors with

thread entrypoints:
(lwpSelect, shutdown_sequence): Parameters didn't match thread entry
point prototype.
(lwpEntryPoint): Arguments didn't match thread entry point prototype.

Change linkage of functions without prototype declaration to static
where possible.

Remove some superflous declarations, replace others by suitable
includes.
This commit is contained in:
Markus Armbruster 2004-02-17 17:59:30 +00:00
parent 7dbb87b0e0
commit 237baffca9
108 changed files with 505 additions and 877 deletions

View file

@ -31,6 +31,7 @@
* Steve McClure, 1998-2000
*/
#include <math.h>
#ifdef Rel4
#include <string.h>
#endif /* Rel4 */
@ -69,9 +70,6 @@ static int build_plane(register struct sctstr *sp,
static int cash; /* static ok */
double sqrt(double);
double logx();
extern int morale_base;
extern int sect_mob_neg_factor;
extern int etu_per_update;
@ -494,7 +492,6 @@ build_land(register struct sctstr *sp, register struct lchrstr *lp,
int points;
struct natstr *natp;
float eff = ((float)LAND_MINEFF / 100.0);
double techfact(int, double);
int mil, lcm, hcm, gun, shell;
int freeland = 0;