Skip to content

Commit

Permalink
Pedantry and other fixes (#132)
Browse files Browse the repository at this point in the history
* pedantry and other fixes

* fixed warnings
  • Loading branch information
noeltimothy authored Jun 21, 2024
1 parent cbb9f64 commit e11fc01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wireshark/source/packet-ja4.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,14 +669,14 @@ char *ja4t (ja4t_info_t *data, conn_info_t *conn) {
wmem_strbuf_append_printf(display, "%c", '_');
for (int i=1; i<conn->syn_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);
}
}

Expand Down

0 comments on commit e11fc01

Please sign in to comment.