diff options
-rw-r--r-- | client.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/client.c b/client.c index 2dcccaa..814c5ea 100644 --- a/client.c +++ b/client.c @@ -19,7 +19,6 @@ #include <regex.h> #include <stdarg.h> #include <stdbool.h> -#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -420,8 +419,8 @@ void clientConsume(struct Client *client) { struct tm *tm = gmtime(&time.tv_sec); strftime(ts, sizeof(ts), "%FT%T", tm); clientFormat( - client, "@time=%s.%03jdZ %s\r\n", - ts, (intmax_t)(time.tv_usec / 1000), line + client, "@time=%s.%03dZ %s\r\n", + ts, (int)(time.tv_usec / 1000), line ); } else { clientFormat(client, "%s\r\n", line); |