common/base32.c: Format with clang-format
BRANCH=none
TEST=none
#include "base32.h"
#include "util.h"
-static const unsigned char crc5_table1[] = {
- 0x00, 0x0E, 0x1C, 0x12, 0x11, 0x1F, 0x0D, 0x03,
- 0x0B, 0x05, 0x17, 0x19, 0x1A, 0x14, 0x06, 0x08
-};
+static const unsigned char crc5_table1[] = { 0x00, 0x0E, 0x1C, 0x12, 0x11, 0x1F,
+ 0x0D, 0x03, 0x0B, 0x05, 0x17, 0x19,
+ 0x1A, 0x14, 0x06, 0x08 };
-static const unsigned char crc5_table0[] = {
- 0x00, 0x16, 0x05, 0x13, 0x0A, 0x1C, 0x0F, 0x19,
- 0x14, 0x02, 0x11, 0x07, 0x1E, 0x08, 0x1B, 0x0D
-};
+static const unsigned char crc5_table0[] = { 0x00, 0x16, 0x05, 0x13, 0x0A, 0x1C,
+ 0x0F, 0x19, 0x14, 0x02, 0x11, 0x07,
+ 0x1E, 0x08, 0x1B, 0x0D };
uint8_t crc5_sym(uint8_t sym, uint8_t previous_crc)
{
@@ -46,9 +44,8 @@ static int decode_sym(int sym)
return -1;
}
-int base32_encode(char *dest, int destlen_chars,
- const void *srcbits, int srclen_bits,
- int add_crc_every)
+int base32_encode(char *dest, int destlen_chars, const void *srcbits,
+ int srclen_bits, int add_crc_every)
{
const uint8_t *src = srcbits;
int destlen_needed;
