/* forward declarations */
static int socket_preconnect (void);
static int socket_connect (int fd, struct sockaddr *sa);
-static CONNECTION *socket_new_conn ();
+static CONNECTION *socket_new_conn (void);
/* Wrappers */
int mutt_socket_open (CONNECTION * conn)
return -1;
}
- len = safe_strlen (buf);
+ len = mutt_strlen (buf);
if ((rc = conn->conn_write (conn, buf, len)) < 0) {
debug_print (1, ("error writing, closing socket\n"));
mutt_socket_close (conn);
debug_print (dbg, ("< %s\n", buf));
- /* number of bytes read, not safe_strlen */
+ /* number of bytes read, not mutt_strlen */
return i + 1;
}
int rc;
int save_errno;
- if (safe_strlen (Preconnect)) {
+ if (mutt_strlen (Preconnect)) {
debug_print (2, ("Executing preconnect: %s\n", Preconnect));
rc = mutt_system (Preconnect);
debug_print (2, ("Preconnect result: %d\n", rc));
}
/* socket_new_conn: allocate and initialise a new connection. */
-static CONNECTION *socket_new_conn ()
+static CONNECTION *socket_new_conn (void)
{
CONNECTION *conn;