Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
flatcap committed Jul 30, 2020
1 parent fcf4a69 commit afa4e00
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion conn/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ bool C_UseIpv6; ///< Config: Lookup IPv6 addresses when
// clang-format on

struct ConfigDef ConnVars[] = {
// clang-format off
// clang-format off
#ifdef USE_SSL
{ "certificate_file", DT_PATH|DT_PATH_FILE, &C_CertificateFile, IP "~/.mutt_certificates", 0, NULL,
"File containing trusted certificates"
Expand Down
3 changes: 2 additions & 1 deletion init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,8 @@ int mutt_query_variables(struct ListHead *queries, bool show_docs)
mutt_buffer_strcpy(&value, tmp.data);
}

dump_config_neo(NeoMutt->sub->cs, he, &value, NULL, show_docs ? CS_DUMP_SHOW_DOCS : CS_DUMP_NO_FLAGS, stdout);
dump_config_neo(NeoMutt->sub->cs, he, &value, NULL,
show_docs ? CS_DUMP_SHOW_DOCS : CS_DUMP_NO_FLAGS, stdout);
}

mutt_buffer_dealloc(&value);
Expand Down
5 changes: 3 additions & 2 deletions maildir/maildir.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,9 @@ void maildir_gen_flags(char *dest, size_t destlen, struct Email *e)
if (e->flagged || e->replied || e->read || e->deleted || e->old || edata->maildir_flags)
{
char tmp[1024];
snprintf(tmp, sizeof(tmp), "%s%s%s%s%s", e->flagged ? "F" : "", e->replied ? "R" : "",
e->read ? "S" : "", e->deleted ? "T" : "", NONULL(edata->maildir_flags));
snprintf(tmp, sizeof(tmp), "%s%s%s%s%s", e->flagged ? "F" : "",
e->replied ? "R" : "", e->read ? "S" : "", e->deleted ? "T" : "",
NONULL(edata->maildir_flags));
if (edata->maildir_flags)
qsort(tmp, strlen(tmp), 1, ch_compare);
snprintf(dest, destlen, ":2,%s", tmp);
Expand Down
9 changes: 6 additions & 3 deletions send/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -1934,7 +1934,8 @@ static bool is_text_plain(const struct Body *b)
*/
static bool abort_for_missing_attachments(const struct Body *b, struct ConfigSubset *sub)
{
const enum QuadOption c_abort_noattach = cs_subset_quad(sub, "abort_noattach");
const enum QuadOption c_abort_noattach =
cs_subset_quad(sub, "abort_noattach");

if (c_abort_noattach == MUTT_NO)
return false;
Expand Down Expand Up @@ -1965,11 +1966,13 @@ static bool abort_for_missing_attachments(const struct Body *b, struct ConfigSub

if (c_abort_noattach == MUTT_YES)
{
mutt_error(_("Message contains text matching \"$abort_noattach_regex\". Not sending."));
mutt_error(_("Message contains text matching \"$abort_noattach_regex\". "
"Not sending."));
return true;
}

return query_quadoption(c_abort_noattach, _("No attachments, cancel sending?")) != MUTT_NO;
return query_quadoption(c_abort_noattach,
_("No attachments, cancel sending?")) != MUTT_NO;
}

/**
Expand Down

0 comments on commit afa4e00

Please sign in to comment.