]> granicus.if.org Git - neomutt/commitdiff
Fix some typos to silence compiler warnings
authorRocco Rutte <pdmef@gmx.net>
Mon, 1 Dec 2008 20:27:44 +0000 (21:27 +0100)
committerRocco Rutte <pdmef@gmx.net>
Mon, 1 Dec 2008 20:27:44 +0000 (21:27 +0100)
ChangeLog
charset.c
history.c
init.c
init.h
pattern.c

index b9fe1707d32a051e7efb8d3838a19b97d8bbb3c3..c62bb2a4686984560170a1fa1e2ee1f8e03a2507 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2008-11-30 20:28 +0100  Rocco Rutte  <pdmef@gmx.net>  (cb251bde7fc1)
+
+       * addrbook.c, browser.c, compose.c, crypt-gpgme.c, curs_main.c,
+       init.c, menu.c, mutt_menu.h, mutt_ssl.c, mutt_ssl_gnutls.c, pager.c,
+       pgpkey.c, postpone.c, query.c, recvattach.c, remailer.c, smime.c:
+       Manage last search pattern outside of menu lifecycle
+
+       Previously, the pattern was thrown away during menu destruction. For
+       the next search, mutt then can't provide a good suggestion. The new
+       behaviour is to manage the pattern outside the lifecyle to always
+       provide the last pattern as suggestion.
+
+2008-11-30 20:23 +0100  Rocco Rutte  <pdmef@gmx.net>  (927a1d30a44e)
+
+       * ChangeLog, query.c: Start numbering query results with 1 instead of
+       0
+
 2008-11-24 11:44 -0800  Brendan Cully  <brendan@kublai.com>  (fd555f9fcb03)
 
        * doc/manual.xml.tail, main.c: Belatedtly acknowledge Rocco's
index 69c0e9bbfe6e2185ecafed54a95fbd719b148b7e..6141dd9d01fecf50fd7d21719fe7ddf974b6f276 100644 (file)
--- a/charset.c
+++ b/charset.c
@@ -142,7 +142,7 @@ PreferredMIMENames[] =
   { "iso-ir-157",      "iso-8859-10"   },
   { "latin6",          "iso-8859-10"   }, /* this is not a bug */
   { "l6",              "iso-8859-10"   },
-  { "csISOLatin6"      "iso-8859-10"   }, 
+  { "csISOLatin6",     "iso-8859-10"   }, 
   
   { "csKOI8r",         "koi8-r"        },
   
index 2a711ffee2453814a5a7ceb748654acfbbfa3964..f8702d4542d1349474883a839c3b785ed8e56c5c 100644 (file)
--- a/history.c
+++ b/history.c
@@ -35,7 +35,7 @@ struct history
 static struct history History[HC_LAST];
 static int OldSize = 0;
 
-#define GET_HISTORY(CLASS)     ((CLASS < 0 || CLASS >= HC_LAST) ? NULL : &History[CLASS])
+#define GET_HISTORY(CLASS)     ((CLASS >= HC_LAST) ? NULL : &History[CLASS])
 
 static void init_history (struct history *h)
 {
diff --git a/init.c b/init.c
index c4d08f9acd2123fefb444202c085068d77164608..d279e1258bdc294e7966eb0068ee42efe5154c92 100644 (file)
--- a/init.c
+++ b/init.c
@@ -56,7 +56,7 @@
          snprintf (err->data, err->dsize, \
            _("Not available in this menu.")); \
          return (-1); \
-       } else
+       }
 
 typedef struct myvar
 {
diff --git a/init.h b/init.h
index f23b9d806689cd5a518b1d6ca999e71b5375da7d..6e5affeabd2bc58b1ceb206d9306af12f990680f 100644 (file)
--- a/init.h
+++ b/init.h
@@ -3334,7 +3334,6 @@ struct command_t
   char *name;
   int (*func) (BUFFER *, BUFFER *, unsigned long, BUFFER *);
   unsigned long data;
-  unsigned long data1;
 };
 
 struct command_t Commands[] = {
index 022d32c916c1eeb97cd802436a4ab9f9b556f133..0f725ad8b2c20151e02e725a3fa69dc64b47be8d 100644 (file)
--- a/pattern.c
+++ b/pattern.c
@@ -46,14 +46,14 @@ static int eat_date (pattern_t *pat, BUFFER *, BUFFER *);
 static int eat_range (pattern_t *pat, BUFFER *, BUFFER *);
 static int patmatch (const pattern_t *pat, const char *buf);
 
-struct pattern_flags
+static struct pattern_flags
 {
   int tag;     /* character used to represent this op */
   int op;      /* operation to perform */
   int class;
   int (*eat_arg) (pattern_t *, BUFFER *, BUFFER *);
 }
-static Flags[] =
+Flags[] =
 {
   { 'A', M_ALL,                        0,              NULL },
   { 'b', M_BODY,               M_FULL_MSG,     eat_regexp },