chiark
/
gitweb
/
~ian
/
secnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Portabiity fix: Build where sizeof is not compatible with int
[secnet.git]
/
util.c
diff --git
a/util.c
b/util.c
index 59ed427ca532956bdae93f31d0e898e4e1afd999..6742dad52de4d000b3b2476040c1dd2cca148aaa 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-571,7
+571,7
@@
const char *iaddr_to_string(const union iaddr *ia)
if (r) {
const char fmt[]= "scoped IPv6 addr, error: %.*s";
sprintf(addrbuf, fmt,
if (r) {
const char fmt[]= "scoped IPv6 addr, error: %.*s";
sprintf(addrbuf, fmt,
-
ADNS_ADDR2TEXT_BUFLEN - sizeof(fmt
) /* underestimate */,
+
(int)(ADNS_ADDR2TEXT_BUFLEN - sizeof(fmt)
) /* underestimate */,
strerror(r));
}
strerror(r));
}