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
|
@ -40,8 +40,7 @@
|
|||
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
player_kill_idle(argv)
|
||||
void *argv;
|
||||
player_kill_idle(void *argv)
|
||||
{
|
||||
extern int max_idle;
|
||||
struct player *p;
|
||||
|
|
|
@ -43,8 +43,7 @@
|
|||
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
delete_lostitems(argv)
|
||||
void *argv;
|
||||
delete_lostitems(void *argv)
|
||||
{
|
||||
extern int lost_items_timeout;
|
||||
time_t now;
|
||||
|
|
|
@ -68,10 +68,10 @@
|
|||
|
||||
s_char program[] = "server";
|
||||
|
||||
extern void player_accept();
|
||||
extern void player_kill_idle();
|
||||
extern void update_sched();
|
||||
extern void delete_lostitems();
|
||||
extern void player_accept(void *);
|
||||
extern void player_kill_idle(void *);
|
||||
extern void update_sched(void *);
|
||||
extern void delete_lostitems(void *);
|
||||
void nullify_objects(void);
|
||||
void init_files(void);
|
||||
void close_files(void);
|
||||
|
@ -81,18 +81,16 @@ static void loc_NTInit(void);
|
|||
static void loc_NTTerm(void);
|
||||
#endif
|
||||
|
||||
extern void mobility_init();
|
||||
extern void mobility_check();
|
||||
extern void market_update();
|
||||
extern void mobility_init(void);
|
||||
extern void mobility_check(void *);
|
||||
extern void market_update(void *);
|
||||
|
||||
#if !defined(_WIN32)
|
||||
static int mainpid = 0;
|
||||
#endif
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
time_t now;
|
||||
int hour[2];
|
||||
|
|
|
@ -42,8 +42,7 @@
|
|||
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
check_all_markets(argv)
|
||||
void *argv;
|
||||
check_all_markets(void *argv)
|
||||
{
|
||||
player->proc = empth_self();
|
||||
player->cnum = 0;
|
||||
|
@ -67,8 +66,7 @@ void *argv;
|
|||
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
market_update(argv)
|
||||
void *argv;
|
||||
market_update(void *argv)
|
||||
{
|
||||
time_t now;
|
||||
struct player *dp;
|
||||
|
|
|
@ -50,9 +50,7 @@ shutdown_init(void)
|
|||
}
|
||||
|
||||
void
|
||||
shutdown_sequence(argc, argv)
|
||||
int argc;
|
||||
s_char **argv;
|
||||
shutdown_sequence(void *argv)
|
||||
{
|
||||
struct natstr *god;
|
||||
struct tm *tm;
|
||||
|
|
|
@ -42,9 +42,7 @@
|
|||
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
mobility_check(argv)
|
||||
void *argv;
|
||||
|
||||
mobility_check(void *argv)
|
||||
{
|
||||
extern s_char *timestampfil;
|
||||
extern int updating_mob;
|
||||
|
@ -93,7 +91,7 @@ void *argv;
|
|||
}
|
||||
|
||||
void
|
||||
mobility_init()
|
||||
mobility_init(void)
|
||||
{
|
||||
extern s_char *timestampfil;
|
||||
extern int updating_mob;
|
||||
|
|
|
@ -41,14 +41,13 @@
|
|||
|
||||
empth_sem_t *update_sem;
|
||||
|
||||
extern void update_main();
|
||||
extern void update_wait();
|
||||
extern void update_main(void *);
|
||||
extern void update_wait(void *argv);
|
||||
time_t update_time;
|
||||
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
update_sched(argv)
|
||||
void *argv;
|
||||
update_sched(void *argv)
|
||||
{
|
||||
extern int s_p_etu;
|
||||
extern int etu_per_update;
|
||||
|
@ -110,8 +109,7 @@ void *argv;
|
|||
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
update_wait(argv)
|
||||
void *argv;
|
||||
update_wait(void *argv)
|
||||
{
|
||||
struct player *p;
|
||||
int running;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue