From 7f0a7564c381538f58906ddb3784331ccb305a8c Mon Sep 17 00:00:00 2001 From: Xiang Zhang Date: Thu, 16 Mar 2017 23:32:43 +0800 Subject: [PATCH] fix evutil_make_internal_pipe_'s comment that fd[0] for read and f[1] for write (cherry picked from commit 2e52bace9f9998826bd3819af328efc8d18decf9) --- event-internal.h | 2 +- evutil.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/event-internal.h b/event-internal.h index 08a2bde1..03eb2a87 100644 --- a/event-internal.h +++ b/event-internal.h @@ -219,7 +219,7 @@ struct event_base { /** Function pointers used to describe the backend that this event_base * uses for signals */ const struct eventop *evsigsel; - /** Data to implement the common signal handelr code. */ + /** Data to implement the common signal handler code. */ struct evsig_info sig; /** Number of virtual events */ diff --git a/evutil.c b/evutil.c index 4dd4a2e1..49c9014f 100644 --- a/evutil.c +++ b/evutil.c @@ -2593,7 +2593,7 @@ evutil_accept4_(evutil_socket_t sockfd, struct sockaddr *addr, } /* Internal function: Set fd[0] and fd[1] to a pair of fds such that writes on - * fd[0] get read from fd[1]. Make both fds nonblocking and close-on-exec. + * fd[1] get read from fd[0]. Make both fds nonblocking and close-on-exec. * Return 0 on success, -1 on failure. */ int -- 2.40.0