summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-11-20 13:33:22 -0500
committerJune McEnroe <june@causal.agency>2019-11-20 13:33:22 -0500
commitb237b9c82d1bac32be09e3ab4e3defee88d271f9 (patch)
treece3774753ff064492df54b01842d15929082ad7d
parentMention the name CertFP in SASL EXTERNAL guide (diff)
downloadpounce-b237b9c82d1bac32be09e3ab4e3defee88d271f9.tar.gz
pounce-b237b9c82d1bac32be09e3ab4e3defee88d271f9.zip
Format milliseconds as int
I don't know what I was thinking. I'm expecting a number less than 1000
of course that fits in int.
-rw-r--r--client.c5
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);