mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Code cleanup
This commit is contained in:
parent
318d11e9db
commit
6ec475cd61
@ -153,7 +153,7 @@ ber_bprint(
|
||||
|
||||
for ( i = 0 ; i < len ; i++ ) {
|
||||
int n = i % 16;
|
||||
int off;
|
||||
unsigned off;
|
||||
|
||||
if( !n ) {
|
||||
if( i ) (*ber_pvt_log_print)( line );
|
||||
@ -163,16 +163,16 @@ ber_bprint(
|
||||
|
||||
off = i % 0x0ffffU;
|
||||
|
||||
line[ 2 ] = hexdig[ ( off & 0xf000U ) >> 12 ];
|
||||
line[ 3 ] = hexdig[ ( off & 0x0f00U ) >> 8 ];
|
||||
line[ 4 ] = hexdig[ ( off & 0x00f0U ) >> 4 ];
|
||||
line[ 5 ] = hexdig[ ( off & 0x000fU ) ];
|
||||
line[ 2 ] = hexdig[ 0x0f & (off >> 12) ];
|
||||
line[ 3 ] = hexdig[ 0x0f & (off >> 8) ];
|
||||
line[ 4 ] = hexdig[ 0x0f & (off >> 4) ];
|
||||
line[ 5 ] = hexdig[ 0x0f & off ];
|
||||
line[ 6 ] = ':';
|
||||
}
|
||||
|
||||
off = BP_OFFSET + n*3 + ((n >= 8)?1:0);
|
||||
line[ off ] = hexdig[ ( data[i] & 0xf0U ) >> 4 ];
|
||||
line[ off+1 ] = hexdig[ data[i] & 0x0fU ];
|
||||
line[ off ] = hexdig[ 0x0f & ( data[i] >> 4 ) ];
|
||||
line[ off+1 ] = hexdig[ 0x0f & data[i] ];
|
||||
|
||||
off = BP_GRAPH + n;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user