X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fkeys.c;h=dacb87b3973b46e1da5261e6af70a1709a18b12e;hb=9e917cc3b614d7a986416e6a2c3ea9ea583adacf;hp=c857fb63503b5cfdf3bdd952b155b47f99417c92;hpb=789146757ca0bc630492bf31ae48ede42b7b437a;p=tinc 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};