summaryrefslogtreecommitdiff
path: root/nuttx/net/tcp
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-06-28 19:26:16 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-06-28 19:26:16 -0600
commit2b17999a153006c49d3f7a550c33aa695680f98f (patch)
tree3263fdcd26976fb1d99e6b0ca9e5dcbcd81c7fc0 /nuttx/net/tcp
parent79ca2de3b252f4e29bf31392e4b5f52b0d512e6d (diff)
downloadnuttx-2b17999a153006c49d3f7a550c33aa695680f98f.tar.gz
nuttx-2b17999a153006c49d3f7a550c33aa695680f98f.tar.bz2
nuttx-2b17999a153006c49d3f7a550c33aa695680f98f.zip
Rename static functions from uip_* to something more appropriate. Globally scoped functions will take more work
Diffstat (limited to 'nuttx/net/tcp')
-rw-r--r--nuttx/net/tcp/tcp_conn.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/net/tcp/tcp_conn.c b/nuttx/net/tcp/tcp_conn.c
index 796dca3c8..8f7951a25 100644
--- a/nuttx/net/tcp/tcp_conn.c
+++ b/nuttx/net/tcp/tcp_conn.c
@@ -88,7 +88,7 @@ static uint16_t g_last_tcp_port;
****************************************************************************/
/****************************************************************************
- * Name: uip_selectport()
+ * Name: tcp_selectport()
*
* Description:
* If the port number is zero; select an unused port for the connection.
@@ -112,7 +112,7 @@ static uint16_t g_last_tcp_port;
*
****************************************************************************/
-static int uip_selectport(uint16_t portno)
+static int tcp_selectport(uint16_t portno)
{
if (portno == 0)
{
@@ -589,7 +589,7 @@ int tcp_bind(FAR struct tcp_conn_s *conn,
/* Verify or select a local port */
flags = net_lock();
- port = uip_selectport(ntohs(addr->sin_port));
+ port = tcp_selectport(ntohs(addr->sin_port));
net_unlock(flags);
if (port < 0)
@@ -661,7 +661,7 @@ int tcp_connect(FAR struct tcp_conn_s *conn,
*/
flags = net_lock();
- port = uip_selectport(ntohs(conn->lport));
+ port = tcp_selectport(ntohs(conn->lport));
net_unlock(flags);
if (port < 0)