Skip to content

Commit e3ec6bc

Browse files
committed
format files
1 parent 80bfa67 commit e3ec6bc

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

app/src/borsh.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@ extern "C" {
3030
#define OFFSET_U32 4
3131
#define OFFSET_U64 8
3232

33-
#define DEFINE_READ_UINT(bits) \
33+
#define DEFINE_READ_UINT(bits) \
3434
static inline parser_error_t read_u##bits(parser_context_t *ctx, uint##bits##_t *val) { \
35-
CHECK_INPUT(ctx); \
36-
CHECK_INPUT(val); \
37-
*val = *(uint##bits##_t *)(ctx->buffer + ctx->offset); \
38-
CTX_CHECK_AND_ADVANCE(ctx, OFFSET_U##bits); \
39-
return parser_ok; \
35+
CHECK_INPUT(ctx); \
36+
CHECK_INPUT(val); \
37+
*val = *(uint##bits##_t *)(ctx->buffer + ctx->offset); \
38+
CTX_CHECK_AND_ADVANCE(ctx, OFFSET_U##bits); \
39+
return parser_ok; \
4040
}
4141

4242
DEFINE_READ_UINT(8)
4343
DEFINE_READ_UINT(16)
4444
DEFINE_READ_UINT(32)
4545
DEFINE_READ_UINT(64)
4646

47-
#undef DEFINE_READ_UINT
47+
#undef DEFINE_READ_UINT
4848

4949
// TODO: Remove these functions
5050
void print_buffer(bytes_t *buffer, const char *title);
@@ -56,6 +56,6 @@ void print_u32(const char *str, uint32_t val);
5656
void print_u64(const char *str, uint64_t val);
5757
void print_u64_hex(const char *str, uint64_t val);
5858

59-
#ifdef __cplusplus
59+
#ifdef __cplusplus
6060
}
6161
#endif

app/src/unsigned_transaction_reader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
********************************************************************************/
1616

17-
#include "common_reader.h"
1817
#include "bank_reader.h"
18+
#include "common_reader.h"
1919
#include "paymaster_reader.h"
2020

2121
parser_error_t read_runtime(parser_context_t *ctx, runtime_t *runtime) {

0 commit comments

Comments
 (0)