remove most of the debug code: often makes the code unreadable, for little
[apps/madmutt.git] / send.c
diff --git a/send.c b/send.c
index 395ecb0..9d85a9e 100644 (file)
--- a/send.c
+++ b/send.c
@@ -28,7 +28,6 @@
 #include <lib-lib/ascii.h>
 #include <lib-lib/macros.h>
 #include <lib-lib/file.h>
-#include <lib-lib/debug.h>
 #include <lib-lib/url.h>
 
 #include <lib-mime/mime.h>
@@ -37,6 +36,7 @@
 #include <lib-ui/enter.h>
 
 #include "mutt.h"
+#include "alias.h"
 #include "rfc3676.h"
 #include "keymap.h"
 #include "copy.h"
@@ -183,7 +183,7 @@ static address_t *find_mailing_lists (address_t * t, address_t * c)
 static int edit_address (address_t ** a, const char *field)
 {
   char buf[HUGE_STRING];
-  char *err = NULL;
+  const char *err = NULL;
   int idna_ok = 0;
 
   do {
@@ -1099,8 +1099,8 @@ int ci_send_message (int flags, /* send mode */
   char *pgpkeylist = NULL;
 
   /* save current value of "pgp_sign_as" */
-  char *signas = NULL, *err = NULL;
-  const char *tag = NULL;
+  char *signas = NULL;
+  const char *tag = NULL, *err = NULL;
   char *ctype;
 
   int rv = -1;
@@ -1208,8 +1208,6 @@ int ci_send_message (int flags, /* send mode */
     }
 
     if (!tempfp) {
-      debug_print (1, ("can't create tempfile %s (errno=%d)\n", 
-                  msg->content->filename, errno));
       mutt_perror (msg->content->filename);
       goto cleanup;
     }