Skip to content

Commit fac2341

Browse files
author
Carlos Cabanero
committed
Clang formatting traces
1 parent 1105d48 commit fac2341

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

src/crypto/base64.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void base64_encode( const uint8_t* raw, const size_t raw_len, char* b64, const s
106106
b64[0] = table[( bytes >> 18 ) & 0x3f];
107107
b64[1] = table[( bytes >> 12 ) & 0x3f];
108108
b64[2] = table[( bytes >> 6 ) & 0x3f];
109-
b64[3] = table[(bytes)&0x3f];
109+
b64[3] = table[( bytes ) & 0x3f];
110110
raw += 3;
111111
b64 += 4;
112112
}

src/crypto/byteorder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ inline uint64_t htobe64( uint64_t x )
7979
static_cast<uint8_t>( ( x >> 24 ) & 0xFF ),
8080
static_cast<uint8_t>( ( x >> 16 ) & 0xFF ),
8181
static_cast<uint8_t>( ( x >> 8 ) & 0xFF ),
82-
static_cast<uint8_t>( (x)&0xFF ) };
82+
static_cast<uint8_t>( ( x ) & 0xFF ) };
8383
union {
8484
const uint8_t* p8;
8585
const uint64_t* p64;
@@ -102,7 +102,7 @@ inline uint64_t be64toh( uint64_t x )
102102

103103
inline uint16_t htobe16( uint16_t x )
104104
{
105-
uint8_t xs[2] = { static_cast<uint8_t>( ( x >> 8 ) & 0xFF ), static_cast<uint8_t>( (x)&0xFF ) };
105+
uint8_t xs[2] = { static_cast<uint8_t>( ( x >> 8 ) & 0xFF ), static_cast<uint8_t>( ( x ) & 0xFF ) };
106106
union {
107107
const uint8_t* p8;
108108
const uint16_t* p16;

src/util/select.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,7 @@ class Select
214214
return rv;
215215
}
216216

217-
static void set_verbose( unsigned int s_verbose )
218-
{
219-
verbose = s_verbose;
220-
}
217+
static void set_verbose( unsigned int s_verbose ) { verbose = s_verbose; }
221218

222219
private:
223220
static const int MAX_SIGNAL_NUMBER = 64;

0 commit comments

Comments
 (0)