chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more template work
[disorder]
/
lib
/
sendmail.c
diff --git
a/lib/sendmail.c
b/lib/sendmail.c
index b2f606c5e6138ba70e97cd5675b700de61f4d7a6..2e0df8f933ba531873ec18f519366e4922c579b5 100644
(file)
--- a/
lib/sendmail.c
+++ b/
lib/sendmail.c
@@
-1,6
+1,6
@@
/*
* This file is part of DisOrder
/*
* This file is part of DisOrder
- * Copyright (C) 2007 Richard Kettlewell
+ * Copyright (C) 2007
-2008
Richard Kettlewell
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-103,7
+103,7
@@
static int sendcommand(const char *tag, FILE *out, const char *fmt, ...) {
* @param recipient Recipient address
* @param subject Subject string
* @param encoding Body encoding
* @param recipient Recipient address
* @param subject Subject string
* @param encoding Body encoding
- * @param
body
_type Content-type of body
+ * @param
content
_type Content-type of body
* @param body Text of body (encoded, but \n for newline)
* @return 0 on success, non-0 on error
*/
* @param body Text of body (encoded, but \n for newline)
* @return 0 on success, non-0 on error
*/
@@
-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 */