]> granicus.if.org Git - neomutt/commitdiff
fix use of 'fallthrough' comments
authorRichard Russon <rich@flatcap.org>
Sat, 16 Dec 2017 14:47:11 +0000 (14:47 +0000)
committerRichard Russon <rich@flatcap.org>
Thu, 28 Dec 2017 13:40:59 +0000 (13:40 +0000)
commands.c
compose.c
conn/ssl.c
conn/ssl_gnutls.c
curs_main.c
imap/message.c
ncrypt/pgppacket.c
pager.c
recvattach.c

index 1db7f378d556e03e50938a0376627e9e712be196..9121da133037b676d979af7ab9d81bb08e64329e 100644 (file)
@@ -854,7 +854,7 @@ int mutt_save_message(struct Header *h, int delete, int decode, int decrypt)
       case 0:
         mutt_clear_error();
         return 0;
-      /* non-fatal error: fall through to fetch/append */
+      /* non-fatal error: continue to fetch/append */
       case 1:
         break;
       /* fatal error, abort */
index 7adaa88923dbd109f6feeaa6d8ba25a236dbb1ec..78287348d110484499d5c43b4975c67bb69a5d7e 100644 (file)
--- a/compose.c
+++ b/compose.c
@@ -971,7 +971,7 @@ int mutt_compose_menu(struct Header *msg, /* structure for new message */
           mutt_message_hook(NULL, msg, MUTT_SEND2HOOK);
           break;
         }
-      /* fall through */
+      /* fallthrough */
       case OP_COMPOSE_EDIT_HEADERS:
         if ((mutt_str_strcmp("builtin", Editor) != 0) &&
             (op == OP_COMPOSE_EDIT_HEADERS ||
index 298f32666cd57d094d034afbb498b40e7adc284d..547e6bd04f5c87128ffca1241db50b887860ccef 100644 (file)
@@ -1087,7 +1087,7 @@ static int interactive_check_cert(X509 *cert, int idx, size_t len, SSL *ssl, int
           mutt_message(_("Certificate saved"));
           mutt_sleep(0);
         }
-      /* fall through */
+      /* fallthrough */
       case OP_MAX + 2: /* accept once */
         done = 2;
         SSL_set_ex_data(ssl, SkipModeExDataIndex, NULL);
index 0dfb998a497b29d2c197f79f408c10c4da9cf7be..0afc6a95ff16f0b7ec5a025c74278ebd27fdcac5 100644 (file)
@@ -864,7 +864,7 @@ static int tls_check_one_certificate(const gnutls_datum_t *certdata,
           mutt_message(_("Certificate saved"));
           mutt_sleep(0);
         }
-      /* fall through */
+      /* fallthrough */
       case OP_MAX + 2: /* accept once */
         done = 2;
         break;
index a92cf42df31c0d9f43d651d223577c1a5dabd447..78727096ab1ea0ebc5a0383a5a70fb6496dffd89 100644 (file)
@@ -2906,8 +2906,8 @@ int mutt_index_menu(void)
         mutt_check_rescore(Context);
         break;
 
-      case OP_EDIT_OR_VIEW_RAW_MESSAGE: /* fall through */
-      case OP_EDIT_RAW_MESSAGE:         /* fall through */
+      case OP_EDIT_OR_VIEW_RAW_MESSAGE:
+      case OP_EDIT_RAW_MESSAGE:
       case OP_VIEW_RAW_MESSAGE:
 
         /* TODO split this into 3 cases? */
index 4c6881e58972aa5f86377533c3faa212b9613475..b72610f4241fa589cb2ac39aef2981b143cc66ec 100644 (file)
@@ -532,7 +532,7 @@ static void generate_seqset(struct Buffer *b, struct ImapData *idata,
       {
         case 1: /* single: convert to a range */
           state = 2;
-        /* fall through */
+        /* fallthrough */
         case 2: /* extend range ending */
           range_end = msn;
           break;
index 308b7c8d2a8073901b1d7d9739c76a72bc0a0646..82fa5f8371ac71135a1711ab0f351d8c53b4bd81 100644 (file)
@@ -169,7 +169,7 @@ unsigned char *pgp_read_packet(FILE *fp, size_t *len)
 
       case 1:
         bytes = 2;
-      /* fall through */
+      /* fallthrough */
 
       case 2:
       {
diff --git a/pager.c b/pager.c
index 6c86996e6b85608fbea70a00389b2dfee60e22f6..482c451eee98cde1f6c9e2f84c8f8bd12a4b5809 100644 (file)
--- a/pager.c
+++ b/pager.c
@@ -3007,7 +3007,7 @@ int mutt_pager(const char *banner, const char *fname, int flags, struct Pager *e
           ch = -1;
           break;
         }
-      /* fall through */
+      /* fallthrough */
       case OP_SAVE:
         if (IsAttach(extra))
         {
@@ -3015,7 +3015,7 @@ int mutt_pager(const char *banner, const char *fname, int flags, struct Pager *e
                                     extra->hdr, NULL);
           break;
         }
-      /* fall through */
+      /* fallthrough */
       case OP_COPY_MESSAGE:
       case OP_DECODE_SAVE:
       case OP_DECODE_COPY:
index 0b3d3451abe0f8efbf4000a743c4123260f1d8bf..ca232921bfa08ea0f67db995acd73c2e63102ebf 100644 (file)
@@ -913,7 +913,7 @@ int mutt_attach_display_loop(struct Menu *menu, int op, struct Header *hdr,
     {
       case OP_DISPLAY_HEADERS:
         toggle_option(OPT_WEED);
-      /* fall through */
+      /* fallthrough */
 
       case OP_VIEW_ATTACH:
         op = mutt_view_attachment(CURATTACH->fp, CURATTACH->content, MUTT_REGULAR, hdr, actx);
@@ -958,11 +958,11 @@ int mutt_attach_display_loop(struct Menu *menu, int op, struct Header *hdr,
           op = OP_NULL;
           break;
         }
-      /* fall through */
+      /* fallthrough */
       case OP_ATTACH_COLLAPSE:
         if (recv)
           return op;
-      /* fall through */
+      /* fallthrough */
       default:
         op = OP_NULL;
     }