summaryrefslogtreecommitdiffhomepage
path: root/stream.c
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-03-05 01:15:08 +0100
committerAki <please@ignore.pl>2021-03-05 01:15:08 +0100
commit7f686c13db864be03d7a5e144b0be7478c4b0a96 (patch)
tree056da78d8abeea530abaa0f0f0e70f26f7f926eb /stream.c
parent80faaca56971219c7135e07f1d3eda8c9fb98c19 (diff)
downloadplop-7f686c13db864be03d7a5e144b0be7478c4b0a96.zip
plop-7f686c13db864be03d7a5e144b0be7478c4b0a96.tar.gz
plop-7f686c13db864be03d7a5e144b0be7478c4b0a96.tar.bz2
Fixed addition of discard function to __index
Diffstat (limited to 'stream.c')
-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);