add break;s for last cases in switch statements
authorMarkus Teich <markus.teich@stusta.mhn.de>
Sat, 26 Apr 2014 21:50:37 +0000 (23:50 +0200)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Sun, 27 Apr 2014 08:34:57 +0000 (10:34 +0200)
st.c

diff --git a/st.c b/st.c
index d2261e2..49df792 100644 (file)
--- a/st.c
+++ b/st.c
@@ -1228,6 +1228,7 @@ ttynew(void) {
                                        opt_io, strerror(errno));
                        }
                }
+               break;
        }
 }
 
@@ -1673,6 +1674,7 @@ tdefcolor(int *attr, int *npar, int l) {
        default:
                fprintf(stderr,
                        "erresc(38): gfx attr %d unknown\n", attr[*npar]);
+               break;
        }
 
        return idx;
@@ -2387,6 +2389,7 @@ tputc(char *c, int len) {
                         * strhandle();
                         */
                        }
+                       break;
                }
                return;
        }
@@ -2550,6 +2553,7 @@ tputc(char *c, int len) {
                                fprintf(stderr, "erresc: unknown sequence ESC 0x%02X '%c'\n",
                                        (uchar) ascii, isprint(ascii)? ascii:'.');
                                term.esc = 0;
+                               break;
                        }
                }
                /*