summaryrefslogtreecommitdiffhomepage
path: root/plop.c
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-02-24 21:22:12 +0100
committerAki <please@ignore.pl>2021-02-24 21:22:12 +0100
commitd64871855128af6fa41a8c089686552ca1b66c70 (patch)
tree949ee94a4d83eec97ffec681c36ddb13f5b6a3bc /plop.c
parent0cbe8c24b3f870d91084b3612dba8b4478b64a32 (diff)
downloadplop-d64871855128af6fa41a8c089686552ca1b66c70.zip
plop-d64871855128af6fa41a8c089686552ca1b66c70.tar.gz
plop-d64871855128af6fa41a8c089686552ca1b66c70.tar.bz2
Replaced pushstring with pushliteral where applicable
Diffstat (limited to 'plop.c')
-rw-r--r--plop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plop.c b/plop.c
index 7859e7b..41b9138 100644
--- a/plop.c
+++ b/plop.c
@@ -107,7 +107,7 @@ int plop_make_server(const char * node, const char * service)
int plop_load_handler(lua_State * L, const char * path)
{
lua_getglobal(L, "package");
- lua_pushstring(L, "loaded");
+ lua_pushliteral(L, "loaded");
int result = lua_rawget(L, -2);
if (LUA_TTABLE != result)
@@ -124,7 +124,7 @@ int plop_load_handler(lua_State * L, const char * path)
return result;
}
- lua_pushstring(L, "handler");
+ lua_pushliteral(L, "handler");
lua_pushvalue(L, -2);
lua_rawset(L, -4);
lua_setglobal(L, "handler");