aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Harning Jr <harningt@gmail.com>2007-11-25 18:46:04 -0500
committerThomas Harning Jr <harningt@gmail.com>2007-11-25 18:46:04 -0500
commit5f579c5332b34cb2cf67db004c2d93086d8c4187 (patch)
treeb86dfc4ff870a8a37b29c595620cb4503a4a441d
parentd90131015fdc2cc54d57aa04629fc8fc272dc29c (diff)
downloadluaevent-prosody-5f579c5332b34cb2cf67db004c2d93086d8c4187.tar.gz
luaevent-prosody-5f579c5332b34cb2cf67db004c2d93086d8c4187.zip
bufferevent got callback call fixed.
-rw-r--r--src/buffer_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer_event.c b/src/buffer_event.c
index a2ec577..4e20353 100644
--- a/src/buffer_event.c
+++ b/src/buffer_event.c
@@ -49,7 +49,7 @@ static void handle_callback(le_bufferevent* le_ev, short what, int callbackIndex
/* func, bufferevent */
lua_pushinteger(L, what);
/* What to do w/ errors...? */
- lua_pcall(L, 3, 0, 0);
+ lua_pcall(L, 2, 0, 0);
}
static void buffer_event_readcb(struct bufferevent *ev, void *ptr) {