various whitespace changes to reduce indentation and to better conform to

formatting guidelines


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46886 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2006-11-02 14:15:12 +00:00
parent c227df91d9
commit 881ad15f2b

View File

@@ -313,19 +313,16 @@ int callerid_feed_jp(struct callerid_state *cid, unsigned char *ubuf, int len, i
}
if (res == 1) {
b2 = b;
b = b & 0x7f ;
b &= 0x7f;
/* crc checksum calculation */
if ( cid->sawflag > 1 ) {
if (cid->sawflag > 1)
cid->crc = calc_crc(cid->crc, (unsigned char) b2);
}
/* Ignore invalid bytes */
if (b > 0xff) {
if (b > 0xff)
continue;
}
/* skip DLE if needed */
if (cid->sawflag > 0) {
@@ -334,9 +331,8 @@ int callerid_feed_jp(struct callerid_state *cid, unsigned char *ubuf, int len, i
continue ;
}
}
if ( cid->skipflag == 1 ) {
if (cid->skipflag == 1)
cid->skipflag = 0 ;
}
/* caller id retrieval */
switch(cid->sawflag) {
@@ -679,6 +675,7 @@ int callerid_feed(struct callerid_state *cid, unsigned char *ubuf, int len, int
cid->oldlen = mylen * 2;
} else
cid->oldlen = 0;
return 0;
}