From 9e917cc3b614d7a986416e6a2c3ea9ea583adacf Mon Sep 17 00:00:00 2001 From: Fufu Fang Date: Tue, 10 Aug 2021 00:34:29 +0100 Subject: [PATCH] Fix -Wsign-compare error in keys.c Part of https://github.com/gsliepen/tinc/issues/288 --- src/keys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keys.c b/src/keys.c index c857fb63..dacb87b3 100644 --- a/src/keys.c +++ b/src/keys.c @@ -21,7 +21,7 @@ bool disable_old_keys(const char *filename, const char *what) { return false; } - int result = snprintf(tmpfile, sizeof(tmpfile), "%s.tmp", filename); + size_t result = snprintf(tmpfile, sizeof(tmpfile), "%s.tmp", filename); if(result < sizeof(tmpfile)) { struct stat st = {.st_mode = 0600}; -- 2.20.1