aboutsummaryrefslogtreecommitdiffstats
path: root/channels/iax2-parser.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-18 06:01:53 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-18 06:01:53 +0000
commita1838239716ca3478706592ea58a87c86094fd70 (patch)
treea1be95b765d18a569cffcb5988c95e93d524044e /channels/iax2-parser.c
parent096423e264f27dc2e5cf97a21d7ebe27b1893607 (diff)
Fix timestamp to always be unsigned
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2453 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/iax2-parser.c')
-rwxr-xr-xchannels/iax2-parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/iax2-parser.c b/channels/iax2-parser.c
index 32d40d129..156ed1d51 100755
--- a/channels/iax2-parser.c
+++ b/channels/iax2-parser.c
@@ -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);