From: Mark Spencer Date: Thu, 18 Mar 2004 06:01:53 +0000 (+0000) Subject: Fix timestamp to always be unsigned X-Git-Tag: 1.0.0-rc1~922 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=29b7818ebfad069d91f14130bbc2551dd5574a63;p=thirdparty%2Fasterisk.git Fix timestamp to always be unsigned git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2453 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/iax2-parser.c b/channels/iax2-parser.c index 32d40d1299..156ed1d510 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);