aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-05-23 01:12:00 -0400
committerNick Mathewson <nickm@torproject.org>2011-05-23 01:12:00 -0400
commit1e69c60dccc358a7146c2b5e7825ea729498b41b (patch)
tree149527a265c0b4656519669866e9c8326de4e6e8 /src
parent93b699e1ea5f4107f545cca97de627a3746e1daf (diff)
downloadtor-1e69c60dccc358a7146c2b5e7825ea729498b41b.tar
tor-1e69c60dccc358a7146c2b5e7825ea729498b41b.tar.gz
The first argument for a libevent callback should be evutil_socket_t
Diffstat (limited to 'src')
-rw-r--r--src/common/procmon.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/procmon.c b/src/common/procmon.c
index cee956a52..bd25bc10e 100644
--- a/src/common/procmon.c
+++ b/src/common/procmon.c
@@ -34,7 +34,7 @@ typedef int pid_t;
/* Currently we need to poll in some way on all systems. */
#ifdef PROCMON_POLLS
-static void tor_process_monitor_poll_cb(int unused1, short unused2,
+static void tor_process_monitor_poll_cb(evutil_socket_t unused1, short unused2,
void *procmon_);
#endif
@@ -232,7 +232,8 @@ tor_process_monitor_new(struct event_base *base,
/** Libevent callback to poll for the existence of the process
* monitored by <b>procmon_</b>. */
static void
-tor_process_monitor_poll_cb(int unused1, short unused2, void *procmon_)
+tor_process_monitor_poll_cb(evutil_socket_t unused1, short unused2,
+ void *procmon_)
{
tor_process_monitor_t *procmon = (tor_process_monitor_t *)(procmon_);
int its_dead_jim;