less warnigs
[apps/madmutt.git] / editmsg.c
index 347b6ae..f204456 100644 (file)
--- a/editmsg.c
+++ b/editmsg.c
@@ -9,23 +9,13 @@
 
 /* simple, editor-based message editing */
 
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <lib-lib/macros.h>
-#include <lib-lib/str.h>
+#include <lib-lib/lib-lib.h>
+#include <lib-ui/curses.h>
 
 #include "mutt.h"
 #include "copy.h"
 #include "mx.h"
 
-
-#include <sys/stat.h>
-#include <errno.h>
-
-#include <time.h>
-
 /*
  * return value:
  * 
@@ -54,7 +44,7 @@ static int edit_one_message (CONTEXT * ctx, HEADER * cur)
 
   struct stat sb;
   time_t mtime = 0;
-  size_t size = 0;
+  ssize_t size = 0;
 
   mutt_mktemp (tmp);