mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Whoops; fix compilation in bench.c
This commit is contained in:
parent
ff7f739685
commit
544cf8888a
@ -77,13 +77,13 @@ read_cb(evutil_socket_t fd, short which, void *arg)
|
||||
if (n >= 0)
|
||||
count += n;
|
||||
else
|
||||
failures++
|
||||
failures++;
|
||||
if (writes) {
|
||||
if (widx >= num_pipes)
|
||||
widx -= num_pipes;
|
||||
n = send(pipes[2 * widx + 1], "e", 1, 0);
|
||||
if (n != 1)
|
||||
failures++
|
||||
failures++;
|
||||
writes--;
|
||||
fired++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user