[Asterisk-cvs] asterisk/channels iax2-parser.c,1.15,1.16

markster at lists.digium.com markster at lists.digium.com
Thu Mar 18 01:06:58 CST 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv28727/channels

Modified Files:
	iax2-parser.c 
Log Message:
Fix timestamp to always be unsigned


Index: iax2-parser.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/iax2-parser.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- iax2-parser.c	24 Feb 2004 21:27:16 -0000	1.15
+++ iax2-parser.c	18 Mar 2004 06:01:53 -0000	1.16
@@ -298,8 +298,8 @@
 	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);




More information about the svn-commits mailing list