use COMMAND_HANDLER macro to define all commands
[fw/openocd] / src / server / server.c
index 05018694bc375ecf433cc33a4b94c415681ab3c8..c000b7c25e7fb3f45ff965e9dc8a60b65322938a 100644 (file)
@@ -534,8 +534,7 @@ int server_quit(void)
 }
 
 /* tell the server we want to shut down */
-static int handle_shutdown_command(struct command_context_s *cmd_ctx,
-               char *cmd, char **args, int argc)
+COMMAND_HANDLER(handle_shutdown_command)
 {
        shutdown_openocd = 1;