From e11fc0142d558bd0c22e97ec8e45591a13eb12b5 Mon Sep 17 00:00:00 2001 From: Timothy Noel Date: Fri, 21 Jun 2024 11:30:04 -0400 Subject: [PATCH] Pedantry and other fixes (#132) * pedantry and other fixes * fixed warnings --- wireshark/source/packet-ja4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wireshark/source/packet-ja4.c b/wireshark/source/packet-ja4.c index 7e7eb59..4b74da4 100644 --- a/wireshark/source/packet-ja4.c +++ b/wireshark/source/packet-ja4.c @@ -669,14 +669,14 @@ char *ja4t (ja4t_info_t *data, conn_info_t *conn) { wmem_strbuf_append_printf(display, "%c", '_'); for (int i=1; isyn_ack_count; i++) { long diff = timediff(&conn->syn_ack_times[i], &conn->syn_ack_times[i-1]); - wmem_strbuf_append_printf(display, "%" PRId64, diff); //(int) latency.nsecs / 100000000); + wmem_strbuf_append_printf(display, "%" PRId64, (long long) diff); if (i < (conn->syn_ack_count - 1)) { wmem_strbuf_append_printf(display, "%c", '-'); } } if (!nstime_is_zero(&conn->rst_time)) { long diff = timediff(&conn->rst_time, &conn->syn_ack_times[conn->syn_ack_count-1]); - wmem_strbuf_append_printf(display, "-R%" PRId64, diff); //(int) latency.nsecs / 100000000); + wmem_strbuf_append_printf(display, "-R%" PRId64, (long long) diff); } }