chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
struct addrinfo varies in order between platforms, forcing us to fall
[disorder]
/
lib
/
sendmail.c
diff --git
a/lib/sendmail.c
b/lib/sendmail.c
index 95ad2a1dcc5cb7b2d60a3e9f29cc2fd756fd6e8c..2e0df8f933ba531873ec18f519366e4922c579b5 100644
(file)
--- a/
lib/sendmail.c
+++ b/
lib/sendmail.c
@@
-210,14
+210,10
@@
int sendmail(const char *sender,
FILE *in, *out;
static const struct addrinfo pref = {
FILE *in, *out;
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,
};
/* Find the SMTP server */
};
/* Find the SMTP server */