From: Xiang Zhang Date: Thu, 16 Mar 2017 15:32:43 +0000 (+0800) Subject: fix evutil_make_internal_pipe_'s comment that fd[0] for read and f[1] for write X-Git-Tag: release-2.1.9-beta^2~189 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f0a7564c381538f58906ddb3784331ccb305a8c;p=libevent fix evutil_make_internal_pipe_'s comment that fd[0] for read and f[1] for write (cherry picked from commit 2e52bace9f9998826bd3819af328efc8d18decf9) --- 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