summaryrefslogtreecommitdiffstats
path: root/bin/ls
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>2002-05-15 18:53:56 +0000
committerbillf <billf@FreeBSD.org>2002-05-15 18:53:56 +0000
commit8ce7d93d620b90f93efafb02126561cca75044f5 (patch)
tree853b1ca3684b83e2a167c6e62604c42a61ec5963 /bin/ls
parent848eea22509b4c4477e75c8f79b47e33146ce4a2 (diff)
downloadFreeBSD-src-8ce7d93d620b90f93efafb02126561cca75044f5.zip
FreeBSD-src-8ce7d93d620b90f93efafb02126561cca75044f5.tar.gz
restore missing default case removed in ls.c:r1.57
add break statements to default cases where missing. Submitted by: bde
Diffstat (limited to 'bin/ls')
-rw-r--r--bin/ls/ls.c3
-rw-r--r--bin/ls/print.c1
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('*');
OpenPOWER on IntegriCloud