From 5e9d09f4d037fca7ff1316cbe91a5196eee931f5 Mon Sep 17 00:00:00 2001 From: Rory Bradford Date: Sun, 13 Nov 2022 14:17:10 +0000 Subject: Improve code formatting Signed-off-by: Rory Bradford --- ignore.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'ignore.c') diff --git a/ignore.c b/ignore.c index d859d46..8bff2ce 100644 --- a/ignore.c +++ b/ignore.c @@ -6,8 +6,8 @@ #include #include -#include "rf.h" #include "ignore.h" +#include "rf.h" static int total_size; @@ -21,8 +21,7 @@ struct ignores *init_ignores(char *path) { char line[MAX_PATH_LENGTH]; total_size = IGNORE_SIZE; - struct ignores *ignores = - (struct ignores *)calloc(sizeof(struct ignores), 1); + struct ignores *ignores = (struct ignores *)calloc(sizeof(struct ignores), 1); ignores->list = (char **)calloc(sizeof(char *), IGNORE_SIZE); ignores->size = 0; @@ -55,8 +54,7 @@ struct ignores *init_ignores(char *path) { } if (i + 1 > total_size) { - ignores->list = (char **)realloc( - ignores->list, sizeof(char *) * (total_size + IGNORE_SIZE)); + ignores->list = (char **)realloc(ignores->list, sizeof(char *) * (total_size + IGNORE_SIZE)); total_size += IGNORE_SIZE; } -- cgit 1.4.1-2-gfad0