Skip to content
Snippets Groups Projects
Commit 29b7818e authored by Mark Spencer's avatar Mark Spencer
Browse files

Fix timestamp to always be unsigned

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2453 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent ce88c6dd
No related branches found
No related tags found
No related merge requests found
......@@ -298,8 +298,8 @@ snprintf(tmp, sizeof(tmp),
retries, fh->oseqno, fh->iseqno, class, subclass);
outputf(tmp);
snprintf(tmp, sizeof(tmp),
" Timestamp: %05ldms SCall: %5.5d DCall: %5.5d [%s:%d]\n",
(long)ntohl(fh->ts),
" Timestamp: %05lums SCall: %5.5d DCall: %5.5d [%s:%d]\n",
(unsigned long)ntohl(fh->ts),
ntohs(fh->scallno) & ~IAX_FLAG_FULL, ntohs(fh->dcallno) & ~IAX_FLAG_RETRANS,
inet_ntoa(sin->sin_addr), ntohs(sin->sin_port));
outputf(tmp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment