You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/11/24 07:58:56 UTC

[GitHub] [incubator-nuttx] anchao commented on a diff in pull request #7675: net: remove psock reference from connect

anchao commented on code in PR #7675:
URL: https://github.com/apache/incubator-nuttx/pull/7675#discussion_r1031156817


##########
net/rpmsg/rpmsg_sockif.c:
##########
@@ -287,11 +286,11 @@ static int rpmsg_socket_ept_cb(FAR struct rpmsg_endpoint *ept,
       nxmutex_lock(&conn->recvlock);
       conn->sendsize = head->size;
 
-      if (conn->psock)
-        {
-          conn->sconn.s_flags |= _SF_CONNECTED;
-          _SO_SETERRNO(conn->psock, OK);
-        }
+      conn->sconn.s_flags |= _SF_CONNECTED;
+#ifdef CONFIG_NET_SOCKOPTS
+      conn->sconn.s_error = OK;
+#endif
+      set_errno(OK);

Review Comment:
   Replace _SO_SETERRNO for equivalent, _SO_SETERRNO change the errno



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org