chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use private *printf functions a bit more widely.
[disorder]
/
lib
/
addr.c
diff --git
a/lib/addr.c
b/lib/addr.c
index bb4f06cdbd8ab7f8514b988c053a9bf645d95048..5bc5bdf9e6d57e991a28a5a8e175e2c71d8dd13c 100644
(file)
--- a/
lib/addr.c
+++ b/
lib/addr.c
@@
-321,7
+321,7
@@
void netaddress_format(const struct netaddress *na,
if(na->port != -1) {
char buffer[64];
if(na->port != -1) {
char buffer[64];
- snprintf(buffer, sizeof buffer, "%d", na->port);
+
byte_
snprintf(buffer, sizeof buffer, "%d", na->port);
vector_append(v, xstrdup(buffer));
}
vector_terminate(v);
vector_append(v, xstrdup(buffer));
}
vector_terminate(v);
@@
-349,7
+349,7
@@
struct addrinfo *netaddress_resolve(const struct netaddress *na,
hints->ai_family = na->af;
hints->ai_protocol = protocol;
hints->ai_flags = passive ? AI_PASSIVE : 0;
hints->ai_family = na->af;
hints->ai_protocol = protocol;
hints->ai_flags = passive ? AI_PASSIVE : 0;
- snprintf(service, sizeof service, "%d", na->port);
+
byte_
snprintf(service, sizeof service, "%d", na->port);
rc = getaddrinfo(na->address, service, hints, &res);
if(rc) {
disorder_error(0, "getaddrinfo %s %d: %s",
rc = getaddrinfo(na->address, service, hints, &res);
if(rc) {
disorder_error(0, "getaddrinfo %s %d: %s",