Skip to content

Commit 09f009c

Browse files
committed
Fix formatting
1 parent b1d3897 commit 09f009c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

db.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#include <errno.h>
22
#include <fcntl.h>
33
#include <stdbool.h>
4+
#include <stdint.h>
45
#include <stdio.h>
56
#include <stdlib.h>
67
#include <string.h>
7-
#include <stdint.h>
88
#include <unistd.h>
99

1010
typedef struct {
@@ -526,8 +526,8 @@ void read_input(InputBuffer* input_buffer) {
526526
}
527527

528528
void close_input_buffer(InputBuffer* input_buffer) {
529-
free(input_buffer->buffer);
530-
free(input_buffer);
529+
free(input_buffer->buffer);
530+
free(input_buffer);
531531
}
532532

533533
void pager_flush(Pager* pager, uint32_t page_num) {
@@ -809,7 +809,7 @@ ExecuteResult execute_insert(Statement* statement, Table* table) {
809809
uint32_t key_to_insert = row_to_insert->id;
810810
Cursor* cursor = table_find(table, key_to_insert);
811811

812-
void *node = get_page(table->pager, cursor->page_num);
812+
void* node = get_page(table->pager, cursor->page_num);
813813
uint32_t num_cells = *leaf_node_num_cells(node);
814814

815815
if (cursor->cell_num < num_cells) {

0 commit comments

Comments
 (0)