Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1616)

Unified Diff: third_party/libevent/test/bench.c

Issue 412006: posix: upgrade libevent from 1.4.7 to 1.4.13 (Closed)
Patch Set: better readme Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/libevent/test/bench.c
diff --git a/third_party/libevent/test/bench.c b/third_party/libevent/test/bench.c
index 48fd32a925847cc4875ae098b912720bcea7c739..c976932fa806c087d0310a0a913b5283c6dabc39 100644
--- a/third_party/libevent/test/bench.c
+++ b/third_party/libevent/test/bench.c
@@ -44,7 +44,7 @@
#include <windows.h>
#else
#include <sys/socket.h>
-#include <sys/signal.h>
+#include <signal.h>
#include <sys/resource.h>
#endif
#include <fcntl.h>
@@ -63,12 +63,10 @@ static int *pipes;
static int num_pipes, num_active, num_writes;
static struct event *events;
-
-
static void
read_cb(int fd, short which, void *arg)
{
- int idx = (int) arg, widx = idx + 1;
+ long idx = (long) arg, widx = idx + 1;
u_char ch;
count += read(fd, &ch, sizeof(ch));
@@ -84,7 +82,8 @@ read_cb(int fd, short which, void *arg)
static struct timeval *
run_once(void)
{
- int *cp, i, space;
+ int *cp, space;
+ long i;
static struct timeval ts, te;
for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) {

Powered by Google App Engine
This is Rietveld 408576698