diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ls/ls.c | 3 | ||||
-rw-r--r-- | bin/ls/print.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/bin/ls/ls.c b/bin/ls/ls.c index 5d88e38..60505cb 100644 --- a/bin/ls/ls.c +++ b/bin/ls/ls.c @@ -461,6 +461,8 @@ traverse(int argc, char *argv[], int options) if (!f_recursive && chp != NULL) (void)fts_set(ftsp, p, FTS_SKIP); break; + default: + break; } if (errno) err(1, "fts_read"); @@ -573,6 +575,7 @@ display(FTSENT *p, FTSENT *list) f_notabs = 0; /* fall through */ default: + break; } maxinode = makenines(maxinode); maxblock = makenines(maxblock); diff --git a/bin/ls/print.c b/bin/ls/print.c index 87fcf64..5887b70 100644 --- a/bin/ls/print.c +++ b/bin/ls/print.c @@ -381,6 +381,7 @@ printtype(u_int mode) (void)putchar('%'); return (1); default: + break; } if (mode & (S_IXUSR | S_IXGRP | S_IXOTH)) { (void)putchar('*'); |