move signal.c into lib/sys
[apps/madmutt.git] / sendlib.c
index 2afe601..e911fed 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -31,6 +31,9 @@
 #include <lib-lib/file.h>
 #include <lib-lib/debug.h>
 
+#include <lib-sys/exit.h>
+#include <lib-sys/mutt_signal.h>
+
 #include <lib-mime/mime.h>
 
 #include <lib-ui/curses.h>
@@ -2024,11 +2027,8 @@ static int mutt_invoke_sendmail (address_t * from,        /* the sender */
 
   if ((i = send_msg (path, args, msg, &childout)) != (EX_OK & 0xff)) {
     if (i != S_BKG) {
-      const char *e = mutt_strsysexit (i);
-
-      e = mutt_strsysexit (i);
       mutt_error (_("Error sending message, child exited %d (%s)."), i,
-                  NONULL (e));
+                  m_strsysexit(i));
       if (childout) {
         struct stat st;