struct BrowserState state = { 0 };
struct Menu *menu = NULL;
struct stat st;
- int i, kill_prefix = 0;
+ int i;
+ bool kill_prefix = false;
bool multiple = (flags & MUTT_SEL_MULTI);
bool folder = (flags & MUTT_SEL_FOLDER);
bool mailbox = (flags & MUTT_SEL_MAILBOX);
mutt_str_strfcpy(prefix, file, sizeof(prefix));
else
mutt_str_strfcpy(prefix, file + i + 1, sizeof(prefix));
- kill_prefix = 1;
+ kill_prefix = true;
#ifdef USE_IMAP
}
#endif
* on which sort method we chose to use. This variable is defined
* only to help readability of the code.
*/
- short browser_track;
+ bool browser_track = false;
switch (SortBrowser & SORT_MASK)
{
case SORT_DESC:
case SORT_SUBJECT:
case SORT_ORDER:
- browser_track = 1;
- break;
-
- default:
- browser_track = 0;
+ browser_track = true;
break;
}
if (kill_prefix)
{
prefix[0] = '\0';
- kill_prefix = 0;
+ kill_prefix = false;
}
mailbox = false;
#ifdef USE_IMAP
mutt_error(_("Error scanning directory"));
goto bail;
}
- kill_prefix = 0;
+ kill_prefix = false;
if (state.entrylen == 0)
{
mutt_error(_("No files match the file mask"));
}
destroy_state(&state);
prefix[0] = '\0';
- kill_prefix = 0;
+ kill_prefix = false;
if (mailbox)
{