aboutsummaryrefslogtreecommitdiff
path: root/src/mime.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mime.c')
-rw-r--r--src/mime.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mime.c b/src/mime.c
index fe24f9b..7a2baae 100644
--- a/src/mime.c
+++ b/src/mime.c
@@ -74,15 +74,15 @@ static UC b64unbase[256];
74/*-------------------------------------------------------------------------*\ 74/*-------------------------------------------------------------------------*\
75* Initializes module 75* Initializes module
76\*-------------------------------------------------------------------------*/ 76\*-------------------------------------------------------------------------*/
77int mime_open(lua_State *L) 77int luaopen_mime(lua_State *L)
78{ 78{
79 lua_pushstring(L, "mime"); 79 lua_pushstring(L, MIME_LIBNAME);
80 lua_newtable(L); 80 lua_setglobal(L, "MIME_LIBNAME");
81 luaL_openlib(L, NULL, func, 0); 81 luaL_openlib(L, MIME_LIBNAME, func, 0);
82 lua_settable(L, LUA_GLOBALSINDEX);
83 /* initialize lookup tables */ 82 /* initialize lookup tables */
84 qpsetup(qpclass, qpunbase); 83 qpsetup(qpclass, qpunbase);
85 b64setup(b64unbase); 84 b64setup(b64unbase);
85 lua_pop(L, 1);
86 return 0; 86 return 0;
87} 87}
88 88