summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
84ee1e3)
And replaced similar comments to be consistent. Used that comment
because it satisfies gcc -Wimplicit-fallthrough=4.
36 files changed:
*--cp = '/';
if (access (epath, R_OK) != NOTOK)
*--cp = '/';
if (access (epath, R_OK) != NOTOK)
- return epath; /* else fall */
+ return epath;
+ /* FALLTHRU */
case NOTOK:
sm_note.code = sm_reply.code;
sm_note.length = sm_reply.length;
case NOTOK:
sm_note.code = sm_reply.code;
sm_note.length = sm_reply.length;
- memcpy (sm_note.text, sm_reply.text, sm_reply.length + 1);/* fall */
+ memcpy (sm_note.text, sm_reply.text, sm_reply.length + 1);
+ /* FALLTHRU */
case DONE:
if (smtalk (SM_RSET, "RSET") == 250 && type == DONE)
return RP_OK;
case DONE:
if (smtalk (SM_RSET, "RSET") == 250 && type == DONE)
return RP_OK;
if (netsec_write(nsc, ".", 1, &errstr) != OK) {
sm_nerror(errstr);
return NOTOK;
if (netsec_write(nsc, ".", 1, &errstr) != OK) {
sm_nerror(errstr);
return NOTOK;
case UUCPHOST:
if (strcasecmp (np->m_host, SystemName()))
case UUCPHOST:
if (strcasecmp (np->m_host, SystemName()))
+ break;
+ /* FALLTHRU */
case LOCALHOST:
local_test: ;
if (!strcasecmp (np->m_mbox, mq.m_mbox))
case LOCALHOST:
local_test: ;
if (!strcasecmp (np->m_mbox, mq.m_mbox))
output ('-');
output (' ');
}
output ('-');
output (' ');
}
- state = S2; /* fall */
-
+ state = S2;
+ /* FALLTHRU */
case S2:
output (*cp);
if (*cp == '\n')
case S2:
output (*cp);
if (*cp == '\n')
ismymbox ((struct mailname *) 0);
primed++;
}
ismymbox ((struct mailname *) 0);
primed++;
}
case FT_PARSEADDR:
if (cm->c_type & CT_DATE) {
CERROR("component used as both date and address");
case FT_PARSEADDR:
if (cm->c_type & CT_DATE) {
CERROR("component used as both date and address");
case TF_EXPR_SV:
LV(FT_SAVESTR, 0);
case TF_EXPR_SV:
LV(FT_SAVESTR, 0);
case TF_EXPR:
*--cp = c;
cp = do_expr(cp, t->extra);
case TF_EXPR:
*--cp = c;
cp = do_expr(cp, t->extra);
default:
*dp++ = *cp;
break;
default:
*dp++ = *cp;
break;
while (isspace ((unsigned char) *--cp) && cp >= name) continue;
*++cp = 0;
/* readpos points to the first character of the field body. */
while (isspace ((unsigned char) *--cp) && cp >= name) continue;
*++cp = 0;
/* readpos points to the first character of the field body. */
strcpy (err, "extraneous semi-colon");
return NOTOK;
}
strcpy (err, "extraneous semi-colon");
return NOTOK;
}
case LX_COMA:
mh_xfree(note);
note = NULL;
case LX_COMA:
mh_xfree(note);
note = NULL;
strcpy (err, "extraneous semi-colon");
return NOTOK;
}
strcpy (err, "extraneous semi-colon");
return NOTOK;
}
case LX_COMA:
case LX_END:
return OK;
case LX_COMA:
case LX_END:
return OK;
default:
ADDCHR(c);
continue;
default:
ADDCHR(c);
continue;
cp = NULL;
return (last_lex = LX_ERR);
}
cp = NULL;
return (last_lex = LX_ERR);
}
default:
ADDCHR(c);
continue;
default:
ADDCHR(c);
continue;
cp = NULL;
return (last_lex = LX_ERR);
}
cp = NULL;
return (last_lex = LX_ERR);
}
default:
ADDCHR(c);
continue;
default:
ADDCHR(c);
continue;
case '\t':
*cp++ = '\n';
break;
case '\t':
*cp++ = '\n';
break;
- } /* fall into default case */
case 't': *bp = '\t'; break;
case 0: s--;
case 't': *bp = '\t'; break;
case 0: s--;
case QUOTE:
*bp = QUOTE;
break;
case QUOTE:
*bp = QUOTE;
break;
switch(t) {
case DEFAULT:
usedefault = 1;
switch(t) {
case DEFAULT:
usedefault = 1;
case MACH:
if (!usedefault) {
case MACH:
if (!usedefault) {
case BODY:
lkfclosedata (fp, seqfile);
adios (NULL, "no blank lines are permitted in %s", seqfile);
case BODY:
lkfclosedata (fp, seqfile);
adios (NULL, "no blank lines are permitted in %s", seqfile);
case ':': /* comment */
case ';':
case '#':
case ':': /* comment */
case ';':
case '#':
case '\n':
fputc (c, out);
break;
case '\n':
fputc (c, out);
break;
switch (c) {
case '\n':
state = S1;
switch (c) {
case '\n':
state = S1;
default:
fputc (c, out);
break;
default:
fputc (c, out);
break;
case NWHATSW:
nwhat++;
continue;
case NWHATSW:
nwhat++;
continue;
case FT_IF_MATCH:
case FT_IF_AMATCH:
printf(" continue else goto");
case FT_IF_MATCH:
case FT_IF_AMATCH:
printf(" continue else goto");
case FT_GOTO:
i = findlabel(fmt + fmt->f_skip);
printf(" L%d", i);
case FT_GOTO:
i = findlabel(fmt + fmt->f_skip);
printf(" L%d", i);
fmt_addcomptext("body", rbuf);
}
fmt_addcomptext("body", rbuf);
}
case FT_IF_MATCH:
case FT_IF_AMATCH:
printf(" continue else goto");
case FT_IF_MATCH:
case FT_IF_AMATCH:
printf(" continue else goto");
case FT_GOTO:
i = findlabel(fmt + fmt->f_skip);
printf(" L%d", i);
case FT_GOTO:
i = findlabel(fmt + fmt->f_skip);
printf(" L%d", i);
nwhat = 0;
continue;
case BILDSW:
nwhat = 0;
continue;
case BILDSW:
- buildsw++; /* fall... */
+ buildsw++;
+ /* FALLTHRU */
case NWHATSW:
nwhat++;
continue;
case NWHATSW:
nwhat++;
continue;
trnflag = 0;
noisy++;
/* advise (cp, "unable to read"); already advised */
trnflag = 0;
noisy++;
/* advise (cp, "unable to read"); already advised */
case SCNERR:
case SCNNUM:
case SCNERR:
case SCNNUM:
trnflag = 0;
noisy++;
/* advise (cp, "unable to read"); already advised */
trnflag = 0;
noisy++;
/* advise (cp, "unable to read"); already advised */
case SCNERR:
case SCNNUM:
case SCNERR:
case SCNNUM:
case BODY:
fseek (in, (long) (-strlen (buf)), SEEK_CUR);
case BODY:
fseek (in, (long) (-strlen (buf)), SEEK_CUR);
ct->c_encoding = CE_7BIT;
goto call_init;
}
ct->c_encoding = CE_7BIT;
goto call_init;
}
case CT_MULTIPART:
adios (NULL, "it doesn't make sense to define an in-line %s content",
ct->c_type == CT_MESSAGE ? "message" : "multipart");
case CT_MULTIPART:
adios (NULL, "it doesn't make sense to define an in-line %s content",
ct->c_type == CT_MESSAGE ? "message" : "multipart");
case 'F':
/* %f, and stdout is not-redirected */
xstdout = 1;
case 'F':
/* %f, and stdout is not-redirected */
xstdout = 1;
if (strcasecmp(ct->c_ctinfo.ci_subtype, "external-body") == 0)
adios(NULL, "external-body messages must be specified "
"by mhbuild directives");
if (strcasecmp(ct->c_ctinfo.ci_subtype, "external-body") == 0)
adios(NULL, "external-body messages must be specified "
"by mhbuild directives");
case AMBIGSW:
ambigsw (cp, mhlswitches);
mhldone (1);
case AMBIGSW:
ambigsw (cp, mhlswitches);
mhldone (1);
case UNKWNSW:
mhladios (NULL, "-%s unknown\n", cp);
case UNKWNSW:
mhladios (NULL, "-%s unknown\n", cp);
case HELPSW:
snprintf (buf, sizeof(buf), "%s [switches] [files ...]", invo_name);
print_help (buf, mhlswitches, 1);
mhldone (0);
case HELPSW:
snprintf (buf, sizeof(buf), "%s [switches] [files ...]", invo_name);
print_help (buf, mhlswitches, 1);
mhldone (0);
case VERSIONSW:
print_version(invo_name);
mhldone (0);
case VERSIONSW:
print_version(invo_name);
mhldone (0);
case BELLSW:
bellflg = 1;
case BELLSW:
bellflg = 1;
+ forwall++;
+ /* FALLTHRU */
case FORW1SW:
forwflg++;
clearflg = -1;/* XXX */
case FORW1SW:
forwflg++;
clearflg = -1;/* XXX */
cp = folder ? concat (folder, ":", fname2, NULL) : mh_xstrdup(fname2);
if (ontty != PITTY)
SIGNAL (SIGINT, intrser);
cp = folder ? concat (folder, ":", fname2, NULL) : mh_xstrdup(fname2);
if (ontty != PITTY)
SIGNAL (SIGINT, intrser);
- mhlfile (fp, cp, ofilen, ofilec); /* FALL THROUGH! */
+ mhlfile (fp, cp, ofilen, ofilec);
free (cp);
for (ap = arglist_head; ap; ap = ap->a_next) {
free (cp);
for (ap = arglist_head; ap; ap = ap->a_next) {
+ fmt_free(NULL, 1);
+ /* FALLTHRU */
default:
if (ontty != PITTY)
default:
if (ontty != PITTY)
default:
*bp++ = c;
continue;
default:
*bp++ = c;
continue;
case CT_MESSAGE:
if (p->c_subtype != MESSAGE_RFC822)
break;
case CT_MESSAGE:
if (p->c_subtype != MESSAGE_RFC822)
break;
default:
e->eb_partno = ct->c_partno;
if (p->c_ctinitfnx)
default:
e->eb_partno = ct->c_partno;
if (p->c_ctinitfnx)
case '\\':
if (*++cp == '\0')
goto bad_quote;
case '\\':
if (*++cp == '\0')
goto bad_quote;
default:
len++;
continue;
default:
len++;
continue;
case '\\':
len++;
maxfit--;
case '\\':
len++;
maxfit--;
default:
len++;
maxfit--;
default:
len++;
maxfit--;
case '"':
*output++ = '\\';
outlen++;
case '"':
*output++ = '\\';
outlen++;
default:
*output++ = *p++;
outlen++;
default:
*output++ = *p++;
outlen++;
case 'F':
/* %f, and stdin is terminal not content */
*xstdin = 1;
case 'F':
/* %f, and stdin is terminal not content */
*xstdin = 1;
case 'f':
if (multipart) {
case 'f':
if (multipart) {
case 'p':
/* No longer supported */
case 'p':
/* No longer supported */
case 'l':
/* display listing prior to displaying content */
case 'l':
/* display listing prior to displaying content */
case BODY:
adios (NULL, "no blank lines are permitted in %s", seqfile);
case BODY:
adios (NULL, "no blank lines are permitted in %s", seqfile);
case '\\':
if ((c = *sp++) == '\0')
goto cerror;
case '\\':
if ((c = *sp++) == '\0')
goto cerror;
defchar:
default:
*ep++ = CCHR;
defchar:
default:
*ep++ = CCHR;
strncpy (buffer, response, sizeof(buffer));
command ("QUIT");
strncpy (response, buffer, sizeof(response));
strncpy (buffer, response, sizeof(buffer));
command ("QUIT");
strncpy (response, buffer, sizeof(response));
case RP_NO:
case RP_NDEL:
die (NULL, "posting failed; %s", rp_string (retval));
case RP_NO:
case RP_NDEL:
die (NULL, "posting failed; %s", rp_string (retval));
default:
die (NULL, "unexpected response; %s", rp_string (retval));
default:
die (NULL, "unexpected response; %s", rp_string (retval));
sleep (5);
switch (child_id) {
case NOTOK:
sleep (5);
switch (child_id) {
case NOTOK:
- admonish (NULL, "unable to fork");/* fall */
+ admonish (NULL, "unable to fork");
+ /* FALLTHRU */
case OK:
execvp (program, vec);
fprintf (stderr, "unable to exec ");
case OK:
execvp (program, vec);
fprintf (stderr, "unable to exec ");
nwhat = 0;
continue;
case BILDSW:
nwhat = 0;
continue;
case BILDSW:
- buildsw++; /* fall... */
+ buildsw++;
+ /* FALLTHRU */
case NWHATSW:
nwhat++;
continue;
case NWHATSW:
nwhat++;
continue;
switch (i = chdir (maildir = m_maildir (folder))) {
case OK:
if (access (".", W_OK) != NOTOK && access ("..", W_OK) != NOTOK)
switch (i = chdir (maildir = m_maildir (folder))) {
case OK:
if (access (".", W_OK) != NOTOK && access ("..", W_OK) != NOTOK)
- break; /* fall otherwise */
+ break;
+ /* FALLTHRU */
case NOTOK:
snprintf (cur, sizeof(cur), "atr-%s-%s",
case NOTOK:
snprintf (cur, sizeof(cur), "atr-%s-%s",
case '.':
if (strcmp (dp->d_name, ".") == 0
|| strcmp (dp->d_name, "..") == 0)
case '.':
if (strcmp (dp->d_name, ".") == 0
|| strcmp (dp->d_name, "..") == 0)
- continue; /* else fall */
+ continue;
+ /* FALLTHRU */
state = BODY;
goto body;
}
state = BODY;
goto body;
}
case FILEEOF:
goto finished;
case FILEEOF:
goto finished;
+ debugsw++;
+ /* FALLTHRU */
case NFILTSW:
case FRMTSW:
case NFRMTSW:
case NFILTSW:
case FRMTSW:
case NFRMTSW:
case SASLMECHSW:
if (!(saslmech = *argp) || *saslmech == '-')
adios (NULL, "missing argument to %s", argp[-1]);
case SASLMECHSW:
if (!(saslmech = *argp) || *saslmech == '-')
adios (NULL, "missing argument to %s", argp[-1]);
case ALIASW:
case FILTSW:
case ALIASW:
case FILTSW:
switch (sendsbr (vec, vecp, program, msgs[msgnum], &st, 1, auth_svc)) {
case DONE:
done (++status);
switch (sendsbr (vec, vecp, program, msgs[msgnum], &st, 1, auth_svc)) {
case DONE:
done (++status);
+ status++;
+ /* FALLTHRU */
case NOTOK:
/* oops -- fork error */
advise ("fork", "unable to");
case NOTOK:
/* oops -- fork error */
advise ("fork", "unable to");
case OK:
/* child process -- send it */
case OK:
/* child process -- send it */
"unable to fork, so doing annotations by hand...");
if (cwd == NULL)
cwd = mh_xstrdup(pwd ());
"unable to fork, so doing annotations by hand...");
if (cwd == NULL)
cwd = mh_xstrdup(pwd ());
case OK:
/* block a few signals */
case OK:
/* block a few signals */
goto non_mhl_switches;
case NHEADSW:
headersw = 0;
goto non_mhl_switches;
case NHEADSW:
headersw = 0;
case CONCATSW:
case NCONCATSW:
non_mhl_switches:
case CONCATSW:
case NCONCATSW:
non_mhl_switches:
default:
continue;
case ')':
default:
continue;
case ')':
* do this - else fall through
*/
if (!next)
* do this - else fall through
*/
if (!next)
- continue; /* else fall */
+ continue;
+ /* FALLTHRU */
* consider delivered if action is successful.
*/
if (won)
* consider delivered if action is successful.
*/
if (won)
- continue; /* else fall */
+ continue;
+ /* FALLTHRU */
if (won)
continue;
break;
if (won)
continue;
break;
default:
/* parse message and build lookup table */
default:
/* parse message and build lookup table */
case 'q':
/* deliver to quoted pipe */
if (strcasecmp (action, "qpipe"))
case 'q':
/* deliver to quoted pipe */
if (strcasecmp (action, "qpipe"))
- continue; /* else fall */
+ continue;
+ /* FALLTHRU */
case '^':
expand (tmpbuf, string, fd);
if (split (tmpbuf, vec) < 1)
case '^':
expand (tmpbuf, string, fd);
if (split (tmpbuf, vec) < 1)
case 'p':
/* deliver to pipe */
if (strcasecmp (action, "pipe"))
case 'p':
/* deliver to pipe */
if (strcasecmp (action, "pipe"))
- continue; /* else fall */
+ continue;
+ /* FALLTHRU */
case '|':
vec[2] = "sh";
vec[3] = "-c";
case '|':
vec[2] = "sh";
vec[3] = "-c";
}
/* deliver to nmh folder */
else if (strcasecmp (action, "folder"))
}
/* deliver to nmh folder */
else if (strcasecmp (action, "folder"))
- continue; /* else fall */
+ continue;
+ /* FALLTHRU */
case '+':
status = usr_folder (fd, string);
break;
case '+':
status = usr_folder (fd, string);
break;
}
/* mbox format */
else if (strcasecmp (action, "mbox"))
}
/* mbox format */
else if (strcasecmp (action, "mbox"))
- continue; /* else fall */
+ continue;
+ /* FALLTHRU */
case '>':
/* mbox format */
case '>':
/* mbox format */
switch (child_id) {
case NOTOK:
advise (NULL, "unable to fork, so sending directly...");
switch (child_id) {
case NOTOK:
advise (NULL, "unable to fork, so sending directly...");
case OK:
vec = argsplit(sendproc, &program, &vecp);
if (pushsw)
case OK:
vec = argsplit(sendproc, &program, &vecp);
if (pushsw)
+ debugsw++;
+ /* FALLTHRU */
case NFILTSW:
case FRMTSW:
case NFRMTSW:
case NFILTSW:
case FRMTSW:
case NFRMTSW:
case SASLMECHSW:
saslmech = *argp;
case SASLMECHSW:
saslmech = *argp;
case ALIASW:
case FILTSW:
case WIDTHSW:
case ALIASW:
case FILTSW:
case WIDTHSW:
advise (NULL, "missing argument to %s", argp[-2]);
return;
}
advise (NULL, "missing argument to %s", argp[-2]);
return;
}
switch (distsw ? child_id : OK) {
case NOTOK:
switch (distsw ? child_id : OK) {
case NOTOK:
- advise (NULL, "unable to fork, so checking directly...");
+ advise (NULL, "unable to fork, so checking directly...");
+ /* FALLTHRU */
case OK:
execvp (postproc, vec);
fprintf (stderr, "unable to exec ");
case OK:
execvp (postproc, vec);
fprintf (stderr, "unable to exec ");