sort out some prototypes, put them where they belong.
[apps/madmutt.git] / recvattach.c
index d9b6d61..c2fec5e 100644 (file)
 # include "config.h"
 #endif
 
-#include <lib-lib/mem.h>
-#include <lib-lib/str.h>
-#include <lib-lib/macros.h>
-#include <lib-lib/ascii.h>
-#include <lib-lib/file.h>
-#include <lib-lib/mapping.h>
+#include <lib-lib/lib-lib.h>
 
 #include <lib-mime/mime.h>
 
@@ -28,7 +23,6 @@
 #include "mutt.h"
 #include "handler.h"
 #include "recvattach.h"
-#include "rfc1524.h"
 #include "attach.h"
 #include "mx.h"
 #include "copy.h"
@@ -953,7 +947,7 @@ void mutt_view_attachments (HEADER * hdr)
           cur = NULL;
           secured = !crypt_smime_decrypt_mime (_fp, &fp, _cur, &cur);
 
-          mutt_free_body (&_cur);
+          body_list_wipe(&_cur);
           safe_fclose (&_fp);
         }
       }
@@ -1245,7 +1239,7 @@ void mutt_view_attachments (HEADER * hdr)
 
       if (need_secured && secured) {
         fclose (fp);
-        mutt_free_body (&cur);
+        body_list_wipe(&cur);
       }
 
       mutt_menuDestroy (&menu);