Skip to content

Commit

Permalink
Merge pull request #571 from pabuhler/compile-fix-printf-format-x32
Browse files Browse the repository at this point in the history
cast time_t values to known types for formatting in fprintf
  • Loading branch information
pabuhler authored Oct 15, 2021
2 parents 557aa11 + 52de419 commit 4f1d945
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/rtp_decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ void rtp_decoder_handle_pkt(u_char *arg,
dcdr->rtcp_cnt++;
}
timersub(&hdr->ts, &dcdr->start_tv, &delta);
fprintf(stdout, "%02ld:%02ld.%06ld\n", delta.tv_sec / 60, delta.tv_sec % 60,
(long)delta.tv_usec);
fprintf(stdout, "%02ld:%02d.%06ld\n", (long)(delta.tv_sec / 60),
(int)(delta.tv_sec % 60), (long)delta.tv_usec);
hexdump(&message, octets_recvd);
}

0 comments on commit 4f1d945

Please sign in to comment.