[asterisk-commits] rizzo: trunk r75873 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 19 02:41:46 CDT 2007


Author: rizzo
Date: Thu Jul 19 02:41:45 2007
New Revision: 75873

URL: http://svn.digium.com/view/asterisk?view=rev&rev=75873
Log:
portability fix: use %f instead of %lf when printing double.
The l is useless.


Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=75873&r1=75872&r2=75873
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Thu Jul 19 02:41:45 2007
@@ -15087,7 +15087,7 @@
 		else if (strcasecmp(args.field, "local_lostpackets") == 0)
 			snprintf(buf, buflen, "%u", qos.local_lostpackets);
 		else if (strcasecmp(args.field, "local_jitter") == 0)
-			snprintf(buf, buflen, "%.0lf", qos.local_jitter * 1000.0);
+			snprintf(buf, buflen, "%.0f", qos.local_jitter * 1000.0);
 		else if (strcasecmp(args.field, "local_count") == 0)
 			snprintf(buf, buflen, "%u", qos.local_count);
 		else if (strcasecmp(args.field, "remote_ssrc") == 0)
@@ -15095,11 +15095,11 @@
 		else if (strcasecmp(args.field, "remote_lostpackets") == 0)
 			snprintf(buf, buflen, "%u", qos.remote_lostpackets);
 		else if (strcasecmp(args.field, "remote_jitter") == 0)
-			snprintf(buf, buflen, "%.0lf", qos.remote_jitter * 1000.0);
+			snprintf(buf, buflen, "%.0f", qos.remote_jitter * 1000.0);
 		else if (strcasecmp(args.field, "remote_count") == 0)
 			snprintf(buf, buflen, "%u", qos.remote_count);
 		else if (strcasecmp(args.field, "rtt") == 0)
-			snprintf(buf, buflen, "%.0lf", qos.rtt * 1000.0);
+			snprintf(buf, buflen, "%.0f", qos.rtt * 1000.0);
 		else if (strcasecmp(args.field, "all") == 0)
 			ast_copy_string(buf, all, buflen);
 		else {




More information about the asterisk-commits mailing list