]> granicus.if.org Git - neomutt/commitdiff
conn: rename socket_new_conn to mutt_socket_new
authorDamien Riegel <damien.riegel@gmail.com>
Wed, 8 Nov 2017 20:44:41 +0000 (15:44 -0500)
committerRichard Russon <rich@flatcap.org>
Thu, 12 Apr 2018 08:51:56 +0000 (09:51 +0100)
Make this function be in the same "namespace" as other Connection
related functions by making its prefix be "mutt_socket".

conn/socket.c
conn/socket.h
mutt_socket.c

index ca99d7bf494a7262541758cea96ddad2ca1e625d..6cdbdfdf82ca7d5d69812ff634ce61e501924d33 100644 (file)
@@ -332,10 +332,10 @@ int mutt_socket_readln_d(char *buf, size_t buflen, struct Connection *conn, int
 }
 
 /**
- * socket_new_conn - allocate and initialise a new connection
+ * mutt_socket_new - allocate and initialise a new connection
  * @retval ptr New Connection
  */
-struct Connection *socket_new_conn(void)
+struct Connection *mutt_socket_new(void)
 {
   struct Connection *conn = mutt_mem_calloc(1, sizeof(struct Connection));
   conn->fd = -1;
index 955e57f07fa118178b4b5b31809002ac25dc4e8a..655eb6957e488f822a26c98f5ba6dea7170fbab5 100644 (file)
@@ -29,7 +29,7 @@
 
 struct Connection;
 
-struct Connection *socket_new_conn(void);
+struct Connection *mutt_socket_new(void);
 
 int mutt_socket_open(struct Connection *conn);
 int mutt_socket_close(struct Connection *conn);
index daabc9eff29de46375f8983ea77d43561cb67254..b00536837d0f79cbaf1dd7dac2aa838b021a2039 100644 (file)
@@ -83,7 +83,7 @@ struct Connection *mutt_conn_find(const struct Connection *start, const struct A
     conn = TAILQ_NEXT(conn, entries);
   }
 
-  conn = socket_new_conn();
+  conn = mutt_socket_new();
   memcpy(&conn->account, account, sizeof(struct Account));
 
   TAILQ_INSERT_HEAD(&Connections, conn, entries);