Skip to content
Snippets Groups Projects
Commit 00d9a3e7 authored by Luigi Rizzo's avatar Luigi Rizzo
Browse files

portability fix: use %f instead of %lf when printing double.

The l is useless.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@75873 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 16fe42c5
No related branches found
No related tags found
No related merge requests found
...@@ -15087,7 +15087,7 @@ static int acf_channel_read(struct ast_channel *chan, const char *funcname, char ...@@ -15087,7 +15087,7 @@ static int acf_channel_read(struct ast_channel *chan, const char *funcname, char
else if (strcasecmp(args.field, "local_lostpackets") == 0) else if (strcasecmp(args.field, "local_lostpackets") == 0)
snprintf(buf, buflen, "%u", qos.local_lostpackets); snprintf(buf, buflen, "%u", qos.local_lostpackets);
else if (strcasecmp(args.field, "local_jitter") == 0) 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) else if (strcasecmp(args.field, "local_count") == 0)
snprintf(buf, buflen, "%u", qos.local_count); snprintf(buf, buflen, "%u", qos.local_count);
else if (strcasecmp(args.field, "remote_ssrc") == 0) else if (strcasecmp(args.field, "remote_ssrc") == 0)
...@@ -15095,11 +15095,11 @@ static int acf_channel_read(struct ast_channel *chan, const char *funcname, char ...@@ -15095,11 +15095,11 @@ static int acf_channel_read(struct ast_channel *chan, const char *funcname, char
else if (strcasecmp(args.field, "remote_lostpackets") == 0) else if (strcasecmp(args.field, "remote_lostpackets") == 0)
snprintf(buf, buflen, "%u", qos.remote_lostpackets); snprintf(buf, buflen, "%u", qos.remote_lostpackets);
else if (strcasecmp(args.field, "remote_jitter") == 0) 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) else if (strcasecmp(args.field, "remote_count") == 0)
snprintf(buf, buflen, "%u", qos.remote_count); snprintf(buf, buflen, "%u", qos.remote_count);
else if (strcasecmp(args.field, "rtt") == 0) 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) else if (strcasecmp(args.field, "all") == 0)
ast_copy_string(buf, all, buflen); ast_copy_string(buf, all, buflen);
else { else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment