From: Fufu Fang Date: Mon, 9 Aug 2021 23:34:29 +0000 (+0100) Subject: Fix -Wsign-compare error in keys.c X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=9e917cc3b614d7a986416e6a2c3ea9ea583adacf Fix -Wsign-compare error in keys.c Part of https://github.com/gsliepen/tinc/issues/288 --- 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};