File e81d40fca7533f73319e76e42fa9694b21cc9e6e.patch of Package swayidle

From e81d40fca7533f73319e76e42fa9694b21cc9e6e Mon Sep 17 00:00:00 2001
From: Stacy Harper <contact@stacyharper.net>
Date: Sat, 15 Jan 2022 17:39:47 +0100
Subject: [PATCH] Fix printf using size_t lineno variable

---
 main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.c b/main.c
index 9ea3f0b3..b524e738 100644
--- a/main.c
+++ b/main.c
@@ -1004,7 +1004,7 @@ static int load_config(const char *config_path) {
 			parse_idlehint(p.we_wordc, p.we_wordv);
 		} else {
 			line[i] = 0;
-			swayidle_log(LOG_ERROR, "Unexpected keyword \"%s\" in line %lu", line, lineno);
+			swayidle_log(LOG_ERROR, "Unexpected keyword \"%s\" in line %zu", line, lineno);
 			free(line);
 			return -EINVAL;
 		}
openSUSE Build Service is sponsored by