diff options
author | Rory Bradford <roryrjb@gmail.com> | 2022-11-13 14:17:10 +0000 |
---|---|---|
committer | Rory Bradford <roryrjb@gmail.com> | 2022-11-13 14:17:10 +0000 |
commit | 5e9d09f4d037fca7ff1316cbe91a5196eee931f5 (patch) | |
tree | f5f1b430b4fe8cc14a97e2699bee4a3905f6fcfe /ignore.c | |
parent | e60fb81871a771f18495c5bd15b4f07d73543144 (diff) | |
download | rf-5e9d09f4d037fca7ff1316cbe91a5196eee931f5.tar.gz |
Improve code formatting
Signed-off-by: Rory Bradford <roryrjb@gmail.com>
Diffstat (limited to 'ignore.c')
-rw-r--r-- | ignore.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ignore.c b/ignore.c index d859d46..8bff2ce 100644 --- a/ignore.c +++ b/ignore.c @@ -6,8 +6,8 @@ #include <stdlib.h> #include <string.h> -#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; } |