From 3f9c34f4152a9287419deb53bca8732ff056600e Mon Sep 17 00:00:00 2001 From: James Golovich Date: Tue, 22 Jun 2004 20:11:15 +0000 Subject: Misc formatting cleanups git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3279 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- translate.c | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'translate.c') 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"); -- cgit v1.2.3