From 8127db94d1773c959f0d26026cbe74811eb94d73 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 8 Mar 2018 21:39:24 +0100 Subject: [PATCH 1/1] send_common: Remove outdated comment. Commit 8dab386f (Rework para_accept()) from eight years ago changed the function to receive also a pointer to the read fd set and pass this pointer to para_accept() which performs the check for readability of the socket file descriptor. Since then the comment which says that the caller must check the fd set is stale. --- send_common.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/send_common.c b/send_common.c index acb7aa6d..71c33b04 100644 --- a/send_common.c +++ b/send_common.c @@ -277,9 +277,8 @@ void generic_com_off(struct sender_status *ss) * \param ss The sender whose listening fd is ready for reading. * \param rfds Passed to para_accept(), * - * This must be called only if the socket fd of \a ss is ready for reading. It - * calls para_accept() to accept the connection and performs the following - * actions on the resulting file descriptor \a fd: + * This calls para_accept() and performs the following actions on the resulting + * file descriptor fd: * * - Checks whether the maximal number of connections are exceeded. * - Sets \a fd to nonblocking mode. -- 2.30.2