Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clang formatting traces #1319

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/crypto/base64.cc
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void base64_encode( const uint8_t* raw, const size_t raw_len, char* b64, const s
b64[0] = table[( bytes >> 18 ) & 0x3f];
b64[1] = table[( bytes >> 12 ) & 0x3f];
b64[2] = table[( bytes >> 6 ) & 0x3f];
b64[3] = table[(bytes)&0x3f];
b64[3] = table[( bytes ) & 0x3f];
raw += 3;
b64 += 4;
}
Expand Down
4 changes: 2 additions & 2 deletions src/crypto/byteorder.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ inline uint64_t htobe64( uint64_t x )
static_cast<uint8_t>( ( x >> 24 ) & 0xFF ),
static_cast<uint8_t>( ( x >> 16 ) & 0xFF ),
static_cast<uint8_t>( ( x >> 8 ) & 0xFF ),
static_cast<uint8_t>( (x)&0xFF ) };
static_cast<uint8_t>( ( x ) & 0xFF ) };
union {
const uint8_t* p8;
const uint64_t* p64;
Expand All @@ -102,7 +102,7 @@ inline uint64_t be64toh( uint64_t x )

inline uint16_t htobe16( uint16_t x )
{
uint8_t xs[2] = { static_cast<uint8_t>( ( x >> 8 ) & 0xFF ), static_cast<uint8_t>( (x)&0xFF ) };
uint8_t xs[2] = { static_cast<uint8_t>( ( x >> 8 ) & 0xFF ), static_cast<uint8_t>( ( x ) & 0xFF ) };
union {
const uint8_t* p8;
const uint16_t* p16;
Expand Down
5 changes: 1 addition & 4 deletions src/util/select.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,7 @@ class Select
return rv;
}

static void set_verbose( unsigned int s_verbose )
{
verbose = s_verbose;
}
static void set_verbose( unsigned int s_verbose ) { verbose = s_verbose; }

private:
static const int MAX_SIGNAL_NUMBER = 64;
Expand Down
Loading