Move type declaration for cmd_handlers up
This commit is contained in:
parent
6cf3a23ad0
commit
fa4cbf0647
1 changed files with 3 additions and 3 deletions
|
@ -9,6 +9,9 @@
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
typedef bool (
|
||||||
|
*cmd_handler)(FILE *client, const char **args, struct kiwmi_server *server);
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
cmd_quit(
|
cmd_quit(
|
||||||
FILE *UNUSED(client),
|
FILE *UNUSED(client),
|
||||||
|
@ -19,9 +22,6 @@ cmd_quit(
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef bool (
|
|
||||||
*cmd_handler)(FILE *client, const char **args, struct kiwmi_server *server);
|
|
||||||
|
|
||||||
static const struct {
|
static const struct {
|
||||||
const char *name;
|
const char *name;
|
||||||
cmd_handler handler;
|
cmd_handler handler;
|
||||||
|
|
Loading…
Reference in a new issue