shithub: lua9

Download patch

ref: a5c6a7b0ba55e5a88e1e1f1f5140b1195bbfbeaf
parent: a14f718fd61c18085880e28865384747cefa06e2
author: telephil9 <telephil9@gmail.com>
date: Tue Oct 27 16:36:20 EDT 2020

Remove close function that does not belong to plumb module

--- a/plumb.c
+++ b/plumb.c
@@ -29,16 +29,6 @@
 }
 
 static int
-lclose(lua_State *L)
-{
-	int fd;
-
-	fd = luaL_checkinteger(L, 1);
-	//close(fd);
-	return 0;
-}
-
-static int
 lsendtext(lua_State *L)
 {
 	char *src, *dst, *wdir, *data;
@@ -81,7 +71,6 @@
 
 static const struct luaL_Reg libplumb [] = {
 	{ "open", lopen },
-	{ "close", lclose },
 	{ "sendtext", lsendtext },
 	{ "recv", lrecv },
 	{ "msg", lmsg },