X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-ui%2Fquery.c;h=62ecd9a9c45ba1a89c5fd3e09ffe09a3370b0069;hp=2a60afa1760c9247fbcf2a63953be27c2edb4843;hb=916e4872caf252a5850e64f79427b9dd7808435d;hpb=96e4b6de291b2195b26289fb03536acd101c6650 diff --git a/lib-ui/query.c b/lib-ui/query.c index 2a60afa..62ecd9a 100644 --- a/lib-ui/query.c +++ b/lib-ui/query.c @@ -7,21 +7,12 @@ * please see the file GPL in the top level source directory. */ -#if HAVE_CONFIG_H -# include "config.h" -#endif +#include -#include -#include -#include - -#include -#include -#include -#include -#include +#include #include +#include #include "mutt.h" #include "alias.h" @@ -128,7 +119,7 @@ static QUERY *run_query (char *s, int quiet) } } p_delete(&buf); - fclose (fp); + m_fclose(&fp); if (mutt_wait_filter (thepid)) { if (!quiet) mutt_error ("%s", msg); @@ -350,7 +341,7 @@ static void query_menu (char *buf, ssize_t buflen, QUERY * results, int retbuf) QueryTable[i].data = queryp; } else { - int clear = 0; + int doclear = 0; /* append */ p_realloc(&QueryTable, menu->max); @@ -361,10 +352,10 @@ static void query_menu (char *buf, ssize_t buflen, QUERY * results, int retbuf) queryp = queryp->next, i++) { /* once we hit new entries, clear/init the tag */ if (queryp == newresults) - clear = 1; + doclear = 1; QueryTable[i].data = queryp; - if (clear) + if (doclear) QueryTable[i].tagged = 0; } }