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:
parent
7dbb87b0e0
commit
237baffca9
108 changed files with 505 additions and 877 deletions
|
@ -140,7 +140,7 @@ collateral_damage(coord x, coord y, int dam, struct emp_qelem *list)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
only_subs(struct emp_qelem *list)
|
||||
{
|
||||
struct emp_qelem *qp;
|
||||
|
@ -977,7 +977,6 @@ show_mission(int type, struct nstr_item *np)
|
|||
int
|
||||
oprange(struct genitem *gp, int type, int *radius)
|
||||
{
|
||||
double techfact(int, double);
|
||||
int range;
|
||||
struct shpstr ship;
|
||||
struct lndstr land;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue