Commit 866b4195 authored by Charlie Root's avatar Charlie Root

Fix a printf format issue with time_t

parent b42a6d17
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include <ctype.h> #include <ctype.h>
#include <errno.h> #include <errno.h>
#include <poll.h> #include <poll.h>
#include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
...@@ -107,7 +108,7 @@ VCLS_func_ping(struct cli *cli, const char * const *av, void *priv) ...@@ -107,7 +108,7 @@ VCLS_func_ping(struct cli *cli, const char * const *av, void *priv)
(void)priv; (void)priv;
(void)av; (void)av;
t = time(NULL); t = time(NULL);
VCLI_Out(cli, "PONG %ld 1.0", t); VCLI_Out(cli, "PONG %jd 1.0", (intmax_t)t);
} }
/*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment