]> granicus.if.org Git - mutt/commitdiff
Remove unused #include directives
authorErik Hovland <erik@hovland.org>
Wed, 17 Dec 2008 03:56:07 +0000 (19:56 -0800)
committerErik Hovland <erik@hovland.org>
Wed, 17 Dec 2008 03:56:07 +0000 (19:56 -0800)
15 files changed:
ChangeLog
crypt.c
curs_main.c
flags.c
group.c
hcache.c
mh.c
pager.c
pgpmicalg.c
pgppacket.c
postpone.c
query.c
recvattach.c
recvcmd.c
send.c

index 648a633823ce69e317b50e36e2c78c380c8b6cd9..b91ffb81e3e4b000e8af5285cd73f0dff9409137 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,14 @@
-2008-12-16 13:00 -0800  Erik Hovland  <erik@hovland.org>  (26216d118339)
+2008-12-16 14:31 -0800  Erik Hovland  <erik@hovland.org>  (e86a97890e09)
+
+       * sendlib.c: mutt_gen_msgid() allocates the msgid off of the heap.
+
+       Since mutt_gen_msgid() allocates the msgid string with strdup, it is
+       getting it off of the heap.
+
+       When the fprintf writes the msgid, the string is no longer tracked
+       and that string is leaked.
+
+       * parse.c: Match variable type to getch return type
 
        * alias.c: Fix fread rc check
 
diff --git a/crypt.c b/crypt.c
index 67d7276bfdc687c529dc9de1d8996f022e210bda..096e0f6ce5902dfdce9a30d66dfb1633336fa2c4 100644 (file)
--- a/crypt.c
+++ b/crypt.c
@@ -30,7 +30,6 @@
 #include "mime.h"
 #include "copy.h"
 #include "mutt_crypt.h"
-#include "pgp.h"
 
 #include <sys/wait.h>
 #include <string.h>
index 4627fa18108bfa4055ac4c714d9f3d007caed1e8..ac32c66a6cc9e9edddcccfb391b074c6e0dd5b6b 100644 (file)
 #include "mutt.h"
 #include "mutt_curses.h"
 #include "mutt_menu.h"
-#include "attach.h"
 #include "mailbox.h"
 #include "mapping.h"
 #include "sort.h"
-#include "buffy.h"
 #include "mx.h"
 
 #ifdef USE_POP
diff --git a/flags.c b/flags.c
index 9465faf02c6c9dd5d98899aed2fbf6aeb31d3c5c..f0f3d8124f96761e6f2b35a3ca9a0f46f11c5e85 100644 (file)
--- a/flags.c
+++ b/flags.c
 #include "sort.h"
 #include "mx.h"
 
-#ifdef USE_IMAP
-#include "imap_private.h"
-#endif
-
 void _mutt_set_flag (CONTEXT *ctx, HEADER *h, int flag, int bf, int upd_ctx)
 {
   int changed = h->changed;
diff --git a/group.c b/group.c
index 195f3dfc70d971e06fe3047bb1c68007e752a8b0..030c451c49a2a527578b6bc4a88cd3784a3f7b64 100644 (file)
--- a/group.c
+++ b/group.c
 #endif
 
 #include "mutt.h"
-#include "mapping.h"
 #include "mutt_curses.h"
 #include "mutt_regex.h"
-#include "history.h"
-#include "keymap.h"
 #include "mbyte.h"
 #include "charset.h"
-#include "mutt_crypt.h"
-#include "mutt_idna.h"
 
 #include <ctype.h>
 #include <stdlib.h>
index 1184e97aae5aa0c2ae8c44a590322fb91425d4c5..ece4ca9f45800a7fd9aba5e678d5eecf9ec3451d 100644 (file)
--- a/hcache.c
+++ b/hcache.c
 #include "mutt.h"
 #include "hcache.h"
 #include "hcversion.h"
-#ifdef USE_IMAP
-#include "message.h"
-#endif
-#include "mime.h"
 #include "mx.h"
 #include "lib.h"
 #include "md5.h"
diff --git a/mh.c b/mh.c
index 050cf5f4548d7731bdba7e524c4c7ce0a248a308..08c5861a03b829a4c936b4a9604e3101393cb909 100644 (file)
--- a/mh.c
+++ b/mh.c
@@ -30,9 +30,7 @@
 #include "mailbox.h"
 #include "mx.h"
 #include "copy.h"
-#include "buffy.h"
 #include "sort.h"
-#include "account.h"
 #if USE_HCACHE
 #include "hcache.h"
 #endif
diff --git a/pager.c b/pager.c
index f7992c8eb32e30b36a7ef94cb1b5fcfa2df69348..f7cd2d2b838656457ff562310191fbf2b91ed6f1 100644 (file)
--- a/pager.c
+++ b/pager.c
 #include "keymap.h"
 #include "mutt_menu.h"
 #include "mapping.h"
-#include "sort.h"
 #include "pager.h"
 #include "attach.h"
 #include "mbyte.h"
 
-#include "mx.h"
-
 #include "mutt_crypt.h"
 
 #include <sys/stat.h>
index f81c76bf5615132c34a003559d07e5bea01888aa..d22c50cc5a1474d5d81a0841c2e67b594c5cad2d 100644 (file)
@@ -28,7 +28,6 @@
 #include "mutt.h"
 #include "pgp.h"
 #include "pgppacket.h"
-#include "mime.h"
 #include "charset.h"
 
 #include <stdio.h>
index 8c2d4b928d1c5ccd9e139b697cf7cf94a296d97f..22642ec3439aee96a6e3551c6ad60eeba835b44e 100644 (file)
@@ -32,9 +32,7 @@
 /* yuck, we were including this one somewhere below. */
 #include "mutt.h"
 
-#include "sha1.h"
 #include "lib.h"
-#include "pgplib.h"
 #include "pgppacket.h"
 
 #define CHUNKSIZE 1024
index 1c40cb99b47293b780cb7d5894bb9033469a2910..50d9bdb71c29d5d2ae63facf592d41d1302b27f8 100644 (file)
 
 #include "mutt.h"
 #include "mutt_menu.h"
-#include "rfc1524.h"
 #include "mime.h"
 #include "mailbox.h"
 #include "mapping.h"
 #include "sort.h"
 #ifdef USE_IMAP
-#include "mx.h"
 #include "imap.h"
 #endif
 #include "mutt_crypt.h"
diff --git a/query.c b/query.c
index 0279778c8be5048566e441cfe72ea144eb9c0832..43507b97a3bb2b6b20f39e0e09d0faa1f7927c2b 100644 (file)
--- a/query.c
+++ b/query.c
@@ -24,7 +24,6 @@
 #include "mutt_menu.h"
 #include "mutt_idna.h"
 #include "mapping.h"
-#include "sort.h"
 
 #include <string.h>
 #include <stdlib.h>
index d0fbe0c4cbd163b6c5936a6d07fbe1834fb23c04..4b73d6b24e00f691359558b7a64d98f1f71d5bcd 100644 (file)
@@ -30,7 +30,6 @@
 #include "attach.h"
 #include "mapping.h"
 #include "mx.h"
-#include "copy.h"
 #include "mutt_crypt.h"
 
 #include <ctype.h>
index 7890cfbe7c91ac0344a26a9002b766f5ccab33f6..c2cfa6d69315e1198db0378bde53d189bcf57395 100644 (file)
--- a/recvcmd.c
+++ b/recvcmd.c
 #include "mutt.h"
 #include "mutt_curses.h"
 #include "mutt_menu.h"
-#include "rfc1524.h"
-#include "mime.h"
-#include "mailbox.h"
 #include "attach.h"
 #include "mapping.h"
-#include "mx.h"
 #include "copy.h"
 #include "mutt_idna.h"
 
diff --git a/send.c b/send.c
index fd3349c030dd52f19b94da6c252556d5c6706867..a145124c76a79217135304a29e3f3542b990396d 100644 (file)
--- a/send.c
+++ b/send.c
@@ -27,7 +27,6 @@
 #include "mime.h"
 #include "mailbox.h"
 #include "copy.h"
-#include "mx.h"
 #include "mutt_crypt.h"
 #include "mutt_idna.h"
 #include "url.h"