forked from libevent/libevent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up error handling in epoll_apply_one_change() a little
The old code was more or less: if (op == X && errno == FOO) { ... } else if (op == Y && errno == BAR) { ... } but really we wanted to do a switch (op) to avoid needless checks and branches. This patch leaves the indentation a little weird so as to make it easier to see what changed; the next patch will fix the indentation.
- Loading branch information
1 parent
8c83eb6
commit 2d55a19
Showing
1 changed file
with
34 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters