src: improve phrasing of some comments, fix spelling error

This commit is contained in:
Bert Belder 2018-05-03 23:21:26 +02:00
parent 55d08bee97
commit fb9820b06c
No known key found for this signature in database
GPG Key ID: 7A77887B2E2ED461
2 changed files with 3 additions and 4 deletions

View File

@ -106,8 +106,8 @@ int epoll_ctl(HANDLE ephnd, int op, SOCKET sock, struct epoll_event* ev) {
return 0;
err:
/* On Linux, in the case of epoll_ctl_mod(), EBADF takes precendence over
* other errors. Wepoll copies this behavior. */
/* On Linux, in the case of epoll_ctl_mod(), EBADF takes priority over other
* errors. Wepoll mimics this behavior. */
err_check_handle(ephnd);
err_check_handle((HANDLE) sock);
return -1;

View File

@ -131,8 +131,7 @@ static int _ep_port_update_events(ep_port_t* port_info) {
if (ep_sock_update(port_info, sock_info) < 0)
return -1;
/* ep_sock_update() removes the socket from the update list if
* successfull. */
/* ep_sock_update() removes the socket from the update queue. */
}
return 0;