Move type declaration for cmd_handlers up

This commit is contained in:
buffet 2019-05-03 09:18:55 +02:00
parent 6cf3a23ad0
commit fa4cbf0647

View file

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