summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stream.c b/stream.c
index f5dab24..5dbddb5 100644
--- a/stream.c
+++ b/stream.c
@@ -45,8 +45,8 @@ int stream_push_new(lua_State * L, const int fd)
lua_pushcfunction(L, stream_flush);
lua_rawset(L, -3);
- lua_pushliteral(L, "flush");
- lua_pushcfunction(L, stream_flush);
+ lua_pushliteral(L, "discard");
+ lua_pushcfunction(L, stream_discard);
lua_rawset(L, -3);
}
lua_rawset(L, -3);