projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move menu.[hc].
[apps/madmutt.git]
/
mutt_socket.c
diff --git
a/mutt_socket.c
b/mutt_socket.c
index
2c49da9
..
664f61f
100644
(file)
--- a/
mutt_socket.c
+++ b/
mutt_socket.c
@@
-145,11
+145,11
@@
int mutt_socket_readchar (CONNECTION * conn, char *c)
return 1;
}
return 1;
}
-int mutt_socket_readln_d (char *buf, size_t buflen, CONNECTION * conn,
+int mutt_socket_readln_d (char *buf, s
s
ize_t buflen, CONNECTION * conn,
int dbg)
{
char ch;
int dbg)
{
char ch;
-
in
t i;
+
ssize_
t i;
for (i = 0; i < buflen - 1; i++) {
if (mutt_socket_readchar (conn, &ch) != 1) {
for (i = 0; i < buflen - 1; i++) {
if (mutt_socket_readchar (conn, &ch) != 1) {
@@
-379,7
+379,7
@@
int raw_socket_open (CONNECTION * conn)
struct addrinfo *cur;
/* we accept v4 or v6 STREAM sockets */
struct addrinfo *cur;
/* we accept v4 or v6 STREAM sockets */
-
memset (&hints, 0, sizeof (hints)
);
+
p_clear(&hints, 1
);
if (option (OPTUSEIPV6))
hints.ai_family = AF_UNSPEC;
if (option (OPTUSEIPV6))
hints.ai_family = AF_UNSPEC;
@@
-439,7
+439,7
@@
int raw_socket_open (CONNECTION * conn)
struct hostent *he;
int i;
struct hostent *he;
int i;
-
memset (&sin, 0, sizeof (sin)
);
+
p_clear(&sin, 1
);
sin.sin_port = htons (conn->account.port);
sin.sin_family = AF_INET;
sin.sin_port = htons (conn->account.port);
sin.sin_family = AF_INET;