[asterisk-commits] tilghman: trunk r241896 - /trunk/channels/chan_vpb.cc

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 21 09:14:56 CST 2010


Author: tilghman
Date: Thu Jan 21 09:14:55 2010
New Revision: 241896

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=241896
Log:
Formats are inconsistent between even 32-bit and 64-bit Linux.  Use casts to ensure both compile.

Modified:
    trunk/channels/chan_vpb.cc

Modified: trunk/channels/chan_vpb.cc
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_vpb.cc?view=diff&rev=241896&r1=241895&r2=241896
==============================================================================
--- trunk/channels/chan_vpb.cc (original)
+++ trunk/channels/chan_vpb.cc Thu Jan 21 09:14:55 2010
@@ -644,8 +644,8 @@
 			vpb_sleep(RING_SKIP);
 		}
 
-		ast_verb(4, "CID record - skipped %ldms trailing ring\n",
-				 ast_tvdiff_ms(ast_tvnow(), cid_record_time));
+		ast_verb(4, "CID record - skipped %lldms trailing ring\n",
+				 (long long int) ast_tvdiff_ms(ast_tvnow(), cid_record_time));
 		cid_record_time = ast_tvnow();
 
 		/* Record bit between the rings which contains the callerid */
@@ -658,8 +658,8 @@
 		vpb_wave_close_write(ws);
 #endif
 
-		ast_verb(4, "CID record - recorded %ldms between rings\n",
-				 ast_tvdiff_ms(ast_tvnow(), cid_record_time));
+		ast_verb(4, "CID record - recorded %lldms between rings\n",
+				 (long long int) ast_tvdiff_ms(ast_tvnow(), cid_record_time));
 
 		ast_mutex_unlock(&p->record_lock);
 




More information about the asterisk-commits mailing list