All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix error->errno typo
@ 2018-12-17  8:56 Jianwen Ji
  2018-12-17 11:38 ` Marcelo Ricardo Leitner
  0 siblings, 1 reply; 2+ messages in thread
From: Jianwen Ji @ 2018-12-17  8:56 UTC (permalink / raw)
  To: linux-sctp

Signed-off-by: Jianwen Ji <jijianwen@gmail.com>
---
 src/apps/sctp_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/apps/sctp_test.c b/src/apps/sctp_test.c
index 4aa2d13..cd7654b 100644
--- a/src/apps/sctp_test.c
+++ b/src/apps/sctp_test.c
@@ -870,7 +870,7 @@ int receive_r(int sk, int once)
 		DEBUG_PRINT(DEBUG_MIN, "\trecvmsg(sk=%d) ", sk);
 
 		error = recvmsg(recvsk, &inmessage, MSG_WAITALL);
-		if (error < 0 && error != EAGAIN) {
+		if (error < 0 && errno != EAGAIN) {
 			if (errno = ENOTCONN && socket_type = SOCK_STREAM &&
 			    role = SERVER) {
 				printf("No association is present now!!\n");
-- 
2.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix error->errno typo
  2018-12-17  8:56 [PATCH] Fix error->errno typo Jianwen Ji
@ 2018-12-17 11:38 ` Marcelo Ricardo Leitner
  0 siblings, 0 replies; 2+ messages in thread
From: Marcelo Ricardo Leitner @ 2018-12-17 11:38 UTC (permalink / raw)
  To: linux-sctp

On Mon, Dec 17, 2018 at 04:56:15PM +0800, Jianwen Ji wrote:
> Signed-off-by: Jianwen Ji <jijianwen@gmail.com>
> ---
>  src/apps/sctp_test.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/apps/sctp_test.c b/src/apps/sctp_test.c
> index 4aa2d13..cd7654b 100644
> --- a/src/apps/sctp_test.c
> +++ b/src/apps/sctp_test.c
> @@ -870,7 +870,7 @@ int receive_r(int sk, int once)
>  		DEBUG_PRINT(DEBUG_MIN, "\trecvmsg(sk=%d) ", sk);
>  
>  		error = recvmsg(recvsk, &inmessage, MSG_WAITALL);
> -		if (error < 0 && error != EAGAIN) {
> +		if (error < 0 && errno != EAGAIN) {

There is a similar one in sctp_status:

apps]$ git grep -B1 'error....E'
sctp_status.c-          error = recvmsg(sk, &inmessage, MSG_WAITALL);
sctp_status.c:          if (error < 0 && error != EAGAIN) {
--
sctp_test.c-            error = recvmsg(recvsk, &inmessage, MSG_WAITALL);
sctp_test.c:            if (error < 0 && error != EAGAIN) {

mind sending a patch fixing it too? Thanks.

>  			if (errno = ENOTCONN && socket_type = SOCK_STREAM &&
>  			    role = SERVER) {
>  				printf("No association is present now!!\n");
> -- 
> 2.9.5
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-12-17 11:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-17  8:56 [PATCH] Fix error->errno typo Jianwen Ji
2018-12-17 11:38 ` Marcelo Ricardo Leitner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.