(login_coms): Remove erroneous declaration. Move definition before

uses.  Add required function declarations.
This commit is contained in:
Ron Koenderink 2006-04-22 14:13:05 +00:00
parent 2e27313cee
commit e81ad47d81

View file

@ -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}
};