From e1ddb4373f55dbe9ae9b1e4a3d3251bef3102150 Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Fri, 13 Jul 2018 14:46:49 -0400 Subject: [PATCH] Change to size_t in swaylock's get_config_path --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 3d57eb7..ebd87d3 100644 --- a/main.c +++ b/main.c @@ -716,7 +716,7 @@ static char *get_config_path(void) { wordexp_t p; char *path; - for (int i = 0; i < (int)(sizeof(config_paths) / sizeof(char *)); ++i) { + for (size_t i = 0; i < (int)(sizeof(config_paths) / sizeof(char *)); ++i) { if (wordexp(config_paths[i], &p, 0) == 0) { path = strdup(p.we_wordv[0]); wordfree(&p);