From cd15e6156e2c86dc13f28f31da59b58df7a1966e Mon Sep 17 00:00:00 2001 From: file Date: Tue, 23 Jan 2007 00:11:32 +0000 Subject: Cosmetic changes. Make main source files better conform to coding guidelines and standards. (issue #8679 reported by johann8384) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@51486 f38db490-d61c-443f-a65b-d21fe96a405b --- main/dsp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'main/dsp.c') diff --git a/main/dsp.c b/main/dsp.c index 12ffaaf42..64329092a 100644 --- a/main/dsp.c +++ b/main/dsp.c @@ -1055,7 +1055,7 @@ static int __ast_dsp_call_progress(struct ast_dsp *dsp, short *s, int len) int pass; int newstate = DSP_TONE_STATE_SILENCE; int res = 0; - while(len) { + while (len) { /* Take the lesser of the number of samples we need and what we have */ pass = len; if (pass > dsp->gsamp_size - dsp->gsamps) @@ -1077,7 +1077,7 @@ static int __ast_dsp_call_progress(struct ast_dsp *dsp, short *s, int len) printf("%.2e %.2e %.2e %.2e %.2e %.2e %.2e %.2e %.2e\n", hz[HZ_350], hz[HZ_425], hz[HZ_440], hz[HZ_480], hz[HZ_620], hz[HZ_950], hz[HZ_1400], hz[HZ_1800], dsp->genergy); #endif - switch(dsp->progmode) { + switch (dsp->progmode) { case PROG_MODE_NA: if (pair_there(hz[HZ_480], hz[HZ_620], hz[HZ_350], hz[HZ_440], dsp->genergy)) { newstate = DSP_TONE_STATE_BUSY; @@ -1421,7 +1421,7 @@ struct ast_frame *ast_dsp_process(struct ast_channel *chan, struct ast_dsp *dsp, #define FIX_INF(inf) do { \ if (writeback) { \ - switch(inf->subclass) { \ + switch (inf->subclass) { \ case AST_FORMAT_SLINEAR: \ break; \ case AST_FORMAT_ULAW: \ @@ -1443,7 +1443,7 @@ struct ast_frame *ast_dsp_process(struct ast_channel *chan, struct ast_dsp *dsp, odata = af->data; len = af->datalen; /* Make sure we have short data */ - switch(af->subclass) { + switch (af->subclass) { case AST_FORMAT_SLINEAR: shortdata = af->data; len = af->datalen / 2; @@ -1576,7 +1576,7 @@ struct ast_frame *ast_dsp_process(struct ast_channel *chan, struct ast_dsp *dsp, if ((dsp->features & DSP_FEATURE_CALL_PROGRESS)) { res = __ast_dsp_call_progress(dsp, shortdata, len); if (res) { - switch(res) { + switch (res) { case AST_CONTROL_ANSWER: case AST_CONTROL_BUSY: case AST_CONTROL_RINGING: -- cgit v1.2.3