From 69631ff66e5afa6993037b60e2db4348a2f7b718 Mon Sep 17 00:00:00 2001 From: Rory Bradford Date: Sun, 2 Aug 2020 12:32:14 +0100 Subject: Various minor improvements Signed-off-by: Rory Bradford --- ignore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ignore.c') diff --git a/ignore.c b/ignore.c index b4cef61..d7b6428 100644 --- a/ignore.c +++ b/ignore.c @@ -27,7 +27,7 @@ struct ignores *init_ignores(char *path) { while ((r = getline(&line, &llen, ignore)) != -1) { char *l = calloc(sizeof(char *), strlen(line) - 1); - for (int j = 0, k = 0; j < strlen(line); j++) { + for (size_t j = 0, k = 0; j < strlen(line); j++) { char c = line[j]; if (isspace(c)) { -- cgit 1.4.1-2-gfad0