aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_adsi.c
diff options
context:
space:
mode:
authorcitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-29 04:42:19 +0000
committercitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-29 04:42:19 +0000
commitfb93977362ce2bcde528c5811bc5231c113e9843 (patch)
tree0231db685741e735dc26777b23059f16e3e59a39 /res/res_adsi.c
parent02b97ef043c0964ec46f426939a752b9b13385d2 (diff)
More formatting cleanups.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3337 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_adsi.c')
-rwxr-xr-xres/res_adsi.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/res/res_adsi.c b/res/res_adsi.c
index c581e7a4f..1e198b7ae 100755
--- a/res/res_adsi.c
+++ b/res/res_adsi.c
@@ -306,11 +306,11 @@ int adsi_begin_download(struct ast_channel *chan, char *service, char *fdn, char
int bytes;
unsigned char buf[256];
char ack[2];
- bytes = 0;
- /* Setup the resident soft key stuff, a piece at a time */
- /* Upload what scripts we can for voicemail ahead of time */
- bytes += adsi_download_connect(buf + bytes, service, fdn, sec, version);
- if (adsi_transmit_message(chan, buf, bytes, ADSI_MSG_DOWNLOAD))
+ bytes = 0;
+ /* Setup the resident soft key stuff, a piece at a time */
+ /* Upload what scripts we can for voicemail ahead of time */
+ bytes += adsi_download_connect(buf + bytes, service, fdn, sec, version);
+ if (adsi_transmit_message(chan, buf, bytes, ADSI_MSG_DOWNLOAD))
return -1;
if (ast_readstring(chan, ack, 1, 10000, 10000, ""))
return -1;
@@ -328,7 +328,7 @@ int adsi_end_download(struct ast_channel *chan)
/* Setup the resident soft key stuff, a piece at a time */
/* Upload what scripts we can for voicemail ahead of time */
bytes += adsi_download_disconnect(buf + bytes);
- if (adsi_transmit_message(chan, buf, bytes, ADSI_MSG_DOWNLOAD))
+ if (adsi_transmit_message(chan, buf, bytes, ADSI_MSG_DOWNLOAD))
return -1;
return 0;
}
@@ -798,7 +798,7 @@ int adsi_input_control(unsigned char *buf, int page, int line, int display, int
{
int bytes=0;
- if (page) {
+ if (page) {
if (line > 4) return -1;
} else {
if (line > 33) return -1;
@@ -857,7 +857,7 @@ int adsi_set_line(unsigned char *buf, int page, int line)
/* Sanity check line number */
- if (page) {
+ if (page) {
if (line > 4) return -1;
} else {
if (line > 33) return -1;