From 36f4d0e9fc73fdc440be31a0e38c7bb253d97889 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 2 Sep 2015 20:03:28 -0600 Subject: [PATCH] Fix a error in some comments --- net/tcp/tcp.h | 4 ++-- net/tcp/tcp_finddev.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/net/tcp/tcp.h b/net/tcp/tcp.h index 1568cc5329..8662ccd7a7 100644 --- a/net/tcp/tcp.h +++ b/net/tcp/tcp.h @@ -419,7 +419,7 @@ FAR struct tcp_conn_s *tcp_nextconn(FAR struct tcp_conn_s *conn); * * Returned Value: * Zero (OK) is returned on success. A negated errno value is returned - * on failure. -ENODEV is the only expected error value. + * on failure. -ENETUNREACH is the only expected error value. * ****************************************************************************/ @@ -440,7 +440,7 @@ int tcp_local_ipv4_device(FAR struct tcp_conn_s *conn); * * Returned Value: * Zero (OK) is returned on success. A negated errno value is returned - * on failure. -ENODEV is the only expected error value. + * on failure. -ENETUNREACH is the only expected error value. * ****************************************************************************/ diff --git a/net/tcp/tcp_finddev.c b/net/tcp/tcp_finddev.c index c6bd0348bd..973ac944f3 100644 --- a/net/tcp/tcp_finddev.c +++ b/net/tcp/tcp_finddev.c @@ -69,7 +69,7 @@ * * Returned Value: * Zero (OK) is returned on success. A negated errno value is returned - * on failure. -ENODEV is the only expected error value. + * on failure. -ENETUNREACH is the only expected error value. * ****************************************************************************/ @@ -190,7 +190,7 @@ static int tcp_find_ipv6_device(FAR struct tcp_conn_s *conn, const net_ipv6addr_ * * Returned Value: * Zero (OK) is returned on success. A negated errno value is returned - * on failure. -ENODEV is the only expected error value. + * on failure. -ENETUNREACH is the only expected error value. * ****************************************************************************/ @@ -218,7 +218,7 @@ int tcp_local_ipv4_device(FAR struct tcp_conn_s *conn) * * Returned Value: * Zero (OK) is returned on success. A negated errno value is returned - * on failure. -ENODEV is the only expected error value. + * on failure. -ENETUNREACH is the only expected error value. * ****************************************************************************/