chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Separate parsing of templates from expansion.
[disorder]
/
lib
/
client-common.c
diff --git
a/lib/client-common.c
b/lib/client-common.c
index d2691298de514819372416353aa76063001860d8..f5ace3e6d7517e8e5dc69c5da2c6b680c2bdeee5 100644
(file)
--- a/
lib/client-common.c
+++ b/
lib/client-common.c
@@
-48,14
+48,10
@@
socklen_t find_server(struct sockaddr **sap, char **namep) {
socklen_t len;
static const struct addrinfo pref = {
- 0,
- PF_INET,
- SOCK_STREAM,
- IPPROTO_TCP,
- 0,
- 0,
- 0,
- 0
+ .ai_flags = 0,
+ .ai_family = PF_INET,
+ .ai_socktype = SOCK_STREAM,
+ .ai_protocol = IPPROTO_TCP,
};
if(config->connect.n) {