aboutsummaryrefslogtreecommitdiffstats
path: root/translate.c
diff options
context:
space:
mode:
authorcitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-22 20:11:15 +0000
committercitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-22 20:11:15 +0000
commit899ce8fd6d00884844847794317e88d70eaec896 (patch)
treebffd10bbd58f5360e9fada3ea452b7a61dfac862 /translate.c
parent08d0c132c31ede086cc473d943aff80c76f47719 (diff)
Misc formatting cleanups
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3279 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'translate.c')
-rwxr-xr-xtranslate.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/translate.c b/translate.c
index 0e6d19b26..2ddcba0b0 100755
--- a/translate.c
+++ b/translate.c
@@ -326,26 +326,25 @@ static void rebuild_matrix(int samples)
static int show_translation(int fd, int argc, char *argv[])
{
#define SHOW_TRANS 11
- int x,y,z;
+ int x, y, z;
char line[80];
if (argc > 4)
return RESULT_SHOWUSAGE;
- if(argv[2] && !strcasecmp(argv[2],"recalc")) {
- z = argv[3] ? atoi(argv[3]) : 1;
+ if (argv[2] && !strcasecmp(argv[2],"recalc")) {
+ z = argv[3] ? atoi(argv[3]) : 1;
- if(z <= 0) {
- ast_cli(fd," C'mon let's be serious here... defaulting to 1.\n");
- z = 1;
- }
-
- if(z > MAX_RECALC) {
- ast_cli(fd," Maximum limit of recalc exceeded by %d, truncating value to %d\n",z-MAX_RECALC,MAX_RECALC);
- z = MAX_RECALC;
- }
- ast_cli(fd," Recalculating Codec Translation (number of sample seconds: %d)\n\n",z);
- rebuild_matrix(z);
+ if (z <= 0) {
+ ast_cli(fd," C'mon let's be serious here... defaulting to 1.\n");
+ z = 1;
+ }
+ if (z > MAX_RECALC) {
+ ast_cli(fd," Maximum limit of recalc exceeded by %d, truncating value to %d\n",z-MAX_RECALC,MAX_RECALC);
+ z = MAX_RECALC;
+ }
+ ast_cli(fd," Recalculating Codec Translation (number of sample seconds: %d)\n\n",z);
+ rebuild_matrix(z);
}
ast_cli(fd, " Translation times between formats (in milliseconds)\n");