[asterisk-commits] rizzo: branch rizzo/astobj2 r72804 - /team/rizzo/astobj2/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Jun 30 18:31:08 CDT 2007


Author: rizzo
Date: Sat Jun 30 18:31:07 2007
New Revision: 72804

URL: http://svn.digium.com/view/asterisk?view=rev&rev=72804
Log:
remove 'l' in %lf printf specifiers. It is ignored by modern
compilers, and illegal in older ones, so what's the point ?


Modified:
    team/rizzo/astobj2/channels/chan_sip.c

Modified: team/rizzo/astobj2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/channels/chan_sip.c?view=diff&rev=72804&r1=72803&r2=72804
==============================================================================
--- team/rizzo/astobj2/channels/chan_sip.c (original)
+++ team/rizzo/astobj2/channels/chan_sip.c Sat Jun 30 18:31:07 2007
@@ -15557,7 +15557,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)
@@ -15565,11 +15565,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