From fac2341f655199de0c4a512993ea93d43354aa46 Mon Sep 17 00:00:00 2001 From: Carlos Cabanero Date: Sun, 7 Apr 2024 18:12:07 -0400 Subject: [PATCH] Clang formatting traces --- src/crypto/base64.cc | 2 +- src/crypto/byteorder.h | 4 ++-- src/util/select.h | 5 +---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/crypto/base64.cc b/src/crypto/base64.cc index 434ff658c..4f843cae8 100644 --- a/src/crypto/base64.cc +++ b/src/crypto/base64.cc @@ -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; } diff --git a/src/crypto/byteorder.h b/src/crypto/byteorder.h index f14f6380b..e555ec01d 100644 --- a/src/crypto/byteorder.h +++ b/src/crypto/byteorder.h @@ -79,7 +79,7 @@ inline uint64_t htobe64( uint64_t x ) static_cast( ( x >> 24 ) & 0xFF ), static_cast( ( x >> 16 ) & 0xFF ), static_cast( ( x >> 8 ) & 0xFF ), - static_cast( (x)&0xFF ) }; + static_cast( ( x ) & 0xFF ) }; union { const uint8_t* p8; const uint64_t* p64; @@ -102,7 +102,7 @@ inline uint64_t be64toh( uint64_t x ) inline uint16_t htobe16( uint16_t x ) { - uint8_t xs[2] = { static_cast( ( x >> 8 ) & 0xFF ), static_cast( (x)&0xFF ) }; + uint8_t xs[2] = { static_cast( ( x >> 8 ) & 0xFF ), static_cast( ( x ) & 0xFF ) }; union { const uint8_t* p8; const uint16_t* p16; diff --git a/src/util/select.h b/src/util/select.h index 82022e50e..9c6407f10 100644 --- a/src/util/select.h +++ b/src/util/select.h @@ -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;