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
|
@ -43,8 +43,6 @@
|
|||
#include "land.h"
|
||||
#include "ship.h"
|
||||
|
||||
#include "prototype.h"
|
||||
|
||||
struct trdstr {
|
||||
short ef_type;
|
||||
natid trd_owner;
|
||||
|
@ -76,7 +74,7 @@ union trdgenstr {
|
|||
struct shpstr shp;
|
||||
};
|
||||
|
||||
s_char *trade_nameof _PROTO((struct trdstr * tp, union trdgenstr * tgp));
|
||||
s_char *trade_nameof(struct trdstr * tp, union trdgenstr * tgp);
|
||||
|
||||
#define gettrade(n, p) \
|
||||
ef_read(EF_TRADE, n, (caddr_t)p)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue