Skip to content

Commit

Permalink
Merge pull request cstack#38 from cstack/fix-formatting
Browse files Browse the repository at this point in the history
Fix formatting
  • Loading branch information
cstack authored Jun 22, 2019
2 parents b1d3897 + 09f009c commit 9ba8216
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions db.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include <errno.h>
#include <fcntl.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <unistd.h>

typedef struct {
Expand Down Expand Up @@ -526,8 +526,8 @@ void read_input(InputBuffer* input_buffer) {
}

void close_input_buffer(InputBuffer* input_buffer) {
free(input_buffer->buffer);
free(input_buffer);
free(input_buffer->buffer);
free(input_buffer);
}

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

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

if (cursor->cell_num < num_cells) {
Expand Down

0 comments on commit 9ba8216

Please sign in to comment.