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:
parent
c227df91d9
commit
881ad15f2b
|
@ -313,19 +313,16 @@ int callerid_feed_jp(struct callerid_state *cid, unsigned char *ubuf, int len, i
|
||||||
}
|
}
|
||||||
|
|
||||||
if (res == 1) {
|
if (res == 1) {
|
||||||
|
|
||||||
b2 = b;
|
b2 = b;
|
||||||
b = b & 0x7f ;
|
b &= 0x7f;
|
||||||
|
|
||||||
/* crc checksum calculation */
|
/* crc checksum calculation */
|
||||||
if ( cid->sawflag > 1 ) {
|
if (cid->sawflag > 1)
|
||||||
cid->crc = calc_crc(cid->crc, (unsigned char) b2);
|
cid->crc = calc_crc(cid->crc, (unsigned char) b2);
|
||||||
}
|
|
||||||
|
|
||||||
/* Ignore invalid bytes */
|
/* Ignore invalid bytes */
|
||||||
if (b > 0xff) {
|
if (b > 0xff)
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
|
|
||||||
/* skip DLE if needed */
|
/* skip DLE if needed */
|
||||||
if (cid->sawflag > 0) {
|
if (cid->sawflag > 0) {
|
||||||
|
@ -334,9 +331,8 @@ int callerid_feed_jp(struct callerid_state *cid, unsigned char *ubuf, int len, i
|
||||||
continue ;
|
continue ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( cid->skipflag == 1 ) {
|
if (cid->skipflag == 1)
|
||||||
cid->skipflag = 0 ;
|
cid->skipflag = 0 ;
|
||||||
}
|
|
||||||
|
|
||||||
/* caller id retrieval */
|
/* caller id retrieval */
|
||||||
switch(cid->sawflag) {
|
switch(cid->sawflag) {
|
||||||
|
@ -679,6 +675,7 @@ int callerid_feed(struct callerid_state *cid, unsigned char *ubuf, int len, int
|
||||||
cid->oldlen = mylen * 2;
|
cid->oldlen = mylen * 2;
|
||||||
} else
|
} else
|
||||||
cid->oldlen = 0;
|
cid->oldlen = 0;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue