diff options
author | Aki <please@ignore.pl> | 2021-03-05 01:15:08 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-03-05 01:15:08 +0100 |
commit | 7f686c13db864be03d7a5e144b0be7478c4b0a96 (patch) | |
tree | 056da78d8abeea530abaa0f0f0e70f26f7f926eb /stream.c | |
parent | 80faaca56971219c7135e07f1d3eda8c9fb98c19 (diff) | |
download | plop-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |