From: Rocco Rutte Date: Mon, 1 Dec 2008 20:27:44 +0000 (+0100) Subject: Fix some typos to silence compiler warnings X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0f9c1588c481a9b6efac6665ff8ebac5ffbc96e;p=neomutt Fix some typos to silence compiler warnings --- diff --git a/ChangeLog b/ChangeLog index b9fe1707d..c62bb2a46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,20 @@ +2008-11-30 20:28 +0100 Rocco Rutte (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 (927a1d30a44e) + + * ChangeLog, query.c: Start numbering query results with 1 instead of + 0 + 2008-11-24 11:44 -0800 Brendan Cully (fd555f9fcb03) * doc/manual.xml.tail, main.c: Belatedtly acknowledge Rocco's diff --git a/charset.c b/charset.c index 69c0e9bbf..6141dd9d0 100644 --- 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" }, diff --git a/history.c b/history.c index 2a711ffee..f8702d454 100644 --- 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 c4d08f9ac..d279e1258 100644 --- 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 f23b9d806..6e5affeab 100644 --- 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[] = { diff --git a/pattern.c b/pattern.c index 022d32c91..0f725ad8b 100644 --- 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 },