projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix -Wsign-compare error in keys.c
[tinc]
/
src
/
keys.c
diff --git
a/src/keys.c
b/src/keys.c
index
c857fb6
..
dacb87b
100644
(file)
--- a/
src/keys.c
+++ b/
src/keys.c
@@
-21,7
+21,7
@@
bool disable_old_keys(const char *filename, const char *what) {
return false;
}
-
in
t 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};