push username, homedir and tmpdir in lua too.
[apps/madmutt.git] / main.c
diff --git a/main.c b/main.c
index f452ba2..e5dc968 100644 (file)
--- a/main.c
+++ b/main.c
@@ -90,7 +90,7 @@ void mutt_exit (int code)
 
 static void mutt_usage (void)
 {
-  puts (mutt_make_version (1));
+  puts (mutt_make_version());
 
   puts
     _("usage: madmutt [ -nRyzZ ] [ -e <cmd> ] [ -F <file> ] [ -m <type> ] [ -f <file> ]\n\
@@ -144,7 +144,7 @@ static void show_version (void)
   char buf[STRING];
 #endif
 
-  puts (mutt_make_version (1));
+  puts (mutt_make_version());
   puts (_(Notice));
 
   uname (&uts);
@@ -724,7 +724,7 @@ int main (int argc, char **argv)
 
       /* is the following if still needed? */
 
-      fout = m_tempfile(buf, sizeof(buf), NONULL(Tempdir), NULL);
+      fout = m_tempfile(buf, sizeof(buf), NONULL(MCore.tmpdir), NULL);
       tempfile = m_strdup(buf);
 
       if (tempfile) {
@@ -851,6 +851,6 @@ int main (int argc, char **argv)
     mutt_endwin (Errorbuf);
   }
 
-  mlua_shutdown();
+  luaM_shutdown();
   exit (0);
 }