(login_coms): Remove erroneous declaration. Move definition before
uses. Add required function declarations.
This commit is contained in:
parent
2e27313cee
commit
e81ad47d81
1 changed files with 22 additions and 14 deletions
|
@ -57,8 +57,29 @@
|
||||||
#endif
|
#endif
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
static struct cmndstr login_coms[];
|
static int client_cmd(void);
|
||||||
|
static int user_cmd(void);
|
||||||
|
static int sanc_cmd(void);
|
||||||
|
static int coun_cmd(void);
|
||||||
|
static int pass_cmd(void);
|
||||||
|
static int options_cmd(void);
|
||||||
|
static int may_play(void);
|
||||||
|
static int play_cmd(void);
|
||||||
|
static int kill_cmd(void);
|
||||||
|
static int quit_cmd(void);
|
||||||
|
|
||||||
|
static struct cmndstr login_coms[] = {
|
||||||
|
{"client client-id...", 0, client_cmd, 0, 0},
|
||||||
|
{"coun country", 0, coun_cmd, 0, 0},
|
||||||
|
{"kill", 0, kill_cmd, 0, 0},
|
||||||
|
{"options option=value...", 0, options_cmd, 0, 0},
|
||||||
|
{"pass password", 0, pass_cmd, 0, 0},
|
||||||
|
{"play [user [country [password]]]", 0, play_cmd, 0, 0},
|
||||||
|
{"quit", 0, quit_cmd, 0, 0},
|
||||||
|
{"sanc", 0, sanc_cmd, 0, 0},
|
||||||
|
{"user name", 0, user_cmd, 0, 0},
|
||||||
|
{0, 0, 0, 0, 0}
|
||||||
|
};
|
||||||
|
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
void
|
void
|
||||||
|
@ -358,16 +379,3 @@ quit_cmd(void)
|
||||||
io_shutdown(player->iop, IO_READ);
|
io_shutdown(player->iop, IO_READ);
|
||||||
return RET_OK;
|
return RET_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct cmndstr login_coms[] = {
|
|
||||||
{"client client-id...", 0, client_cmd, 0, 0},
|
|
||||||
{"coun country", 0, coun_cmd, 0, 0},
|
|
||||||
{"kill", 0, kill_cmd, 0, 0},
|
|
||||||
{"options option=value...", 0, options_cmd, 0, 0},
|
|
||||||
{"pass password", 0, pass_cmd, 0, 0},
|
|
||||||
{"play [user [country [password]]]", 0, play_cmd, 0, 0},
|
|
||||||
{"quit", 0, quit_cmd, 0, 0},
|
|
||||||
{"sanc", 0, sanc_cmd, 0, 0},
|
|
||||||
{"user name", 0, user_cmd, 0, 0},
|
|
||||||
{0, 0, 0, 0, 0}
|
|
||||||
};
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue