summaryrefslogtreecommitdiffhomepage
path: root/plop.c
diff options
context:
space:
mode:
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");