return 1;
}
-int mutt_socket_readln_d (char *buf, size_t buflen, CONNECTION * conn,
+int mutt_socket_readln_d (char *buf, ssize_t buflen, CONNECTION * conn,
int dbg)
{
char ch;
- int i;
+ ssize_t i;
for (i = 0; i < buflen - 1; i++) {
if (mutt_socket_readchar (conn, &ch) != 1) {
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;
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;