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

@ -193,7 +193,7 @@ struct mchrstr {
#define getshipp(n) \
(struct shpstr *) ef_ptr(EF_SHIP, n)
extern double seagun();
extern double seagun(int effic, int guns);
extern struct mchrstr mchr[];
extern int shp_maxno;
@ -216,8 +216,7 @@ struct mlist {
#define SHP_FIR(b, t) (t ? (b * (logx((double)t, (double)60.0) < 1.0 ? 1.0 : \
logx((double)t, (double)60.0))) : b)
double sqrt();
double logx();
double logx(double d, double base);
/* return codes from shp_check_nav */
#define CN_NAVIGABLE (0)