summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ev.h2
-rw-r--r--ev.pod2
-rw-r--r--event.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/ev.h b/ev.h
index c82f5a1..f2ec3f2 100644
--- a/ev.h
+++ b/ev.h
@@ -303,7 +303,7 @@ unsigned int ev_method (EV_P);
#define EVLOOP_NONBLOCK 1 /* do not block/wait */
#define EVLOOP_ONESHOT 2 /* block *once* only */
-#define EVUNLOOP_ONCE 1 /* unloop once */
+#define EVUNLOOP_ONE 1 /* unloop once */
#define EVUNLOOP_ALL 2 /* unloop all loops */
#if EV_PROTOTYPES
diff --git a/ev.pod b/ev.pod
index 616fea2..fae0718 100644
--- a/ev.pod
+++ b/ev.pod
@@ -243,7 +243,7 @@ more generic mechanism.
Can be used to make a call to C<ev_loop> return early (but only after it
has processed all outstanding events). The C<how> argument must be either
-C<EVUNLOOP_ONCE>, which will make the innermost C<ev_loop> call return, or
+C<EVUNLOOP_ONE>, which will make the innermost C<ev_loop> call return, or
C<EVUNLOOP_ALL>, which will make all nested C<ev_loop> calls return.
=item ev_ref (loop)
diff --git a/event.c b/event.c
index b24d702..7bcb804 100644
--- a/event.c
+++ b/event.c
@@ -347,7 +347,7 @@ x_loopexit_cb (int revents, void *base)
{
dLOOPbase;
- ev_unloop (EV_A_ EVUNLOOP_ONCE);
+ ev_unloop (EV_A_ EVUNLOOP_ONE);
}
int event_base_loopexit (struct event_base *base, struct timeval *tv)