[asterisk-commits] russell: branch 1.6.0 r253625 - /branches/1.6.0/main/utils.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Mar 20 13:11:11 CDT 2010


Author: russell
Date: Sat Mar 20 13:11:06 2010
New Revision: 253625

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=253625
Log:
Resolve compiler warnings on FreeBSD.

Modified:
    branches/1.6.0/main/utils.c

Modified: branches/1.6.0/main/utils.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.0/main/utils.c?view=diff&rev=253625&r1=253624&r2=253625
==============================================================================
--- branches/1.6.0/main/utils.c (original)
+++ branches/1.6.0/main/utils.c Sat Mar 20 13:11:06 2010
@@ -1244,12 +1244,12 @@
 {
 	if (a.tv_usec >= ONE_MILLION) {
 		ast_log(LOG_WARNING, "warning too large timestamp %ld.%ld\n",
-			a.tv_sec, (long int) a.tv_usec);
+			(long) a.tv_sec, (long int) a.tv_usec);
 		a.tv_sec += a.tv_usec / ONE_MILLION;
 		a.tv_usec %= ONE_MILLION;
 	} else if (a.tv_usec < 0) {
 		ast_log(LOG_WARNING, "warning negative timestamp %ld.%ld\n",
-			a.tv_sec, (long int) a.tv_usec);
+			(long) a.tv_sec, (long int) a.tv_usec);
 		a.tv_usec = 0;
 	}
 	return a;




More information about the asterisk-commits mailing list