/*--------------------------------------------------------------------*/
-static void
-cli_func_ping(struct cli *cli, char **av, void *priv)
-{
- time_t t;
-
- (void)priv;
-#if 0
- arm_keepalive();
-#endif
- if (av[2] != NULL) {
- /* XXX: check clock skew is pointless here */
- }
- t = time(NULL);
- cli_out(cli, "PONG %ld", t);
-}
-
-/*--------------------------------------------------------------------*/
-
struct cli_proto CLI_cmds[] = {
{ CLI_PING, cli_func_ping },
#if 0
#include <ctype.h>
#include <stdlib.h>
#include <unistd.h>
+#include <time.h>
#include <signal.h>
#include <sys/wait.h>
*ptr = p;
return (0);
}
+
+/*--------------------------------------------------------------------*/
+
+void
+cli_func_ping(struct cli *cli, char **av, void *priv)
+{
+ time_t t;
+
+ (void)priv;
+ (void)av;
+ t = time(NULL);
+ cli_out(cli, "PONG %ld", t);
+}
int cli_writeres(int fd, struct cli *cli);
int cli_readres(int fd, unsigned *status, char **ptr);
extern struct cli_proto CLI_cmds[];
+
+cli_func_t cli_func_ping;