restore missing default case removed in ls.c:r1.57

add break statements to default cases where missing.

Submitted by:	bde
This commit is contained in:
Bill Fumerola 2002-05-15 18:53:56 +00:00
parent 22e5252fed
commit 568dcd5fca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96681
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -381,6 +381,7 @@ printtype(u_int mode)
(void)putchar('%');
return (1);
default:
break;
}
if (mode & (S_IXUSR | S_IXGRP | S_IXOTH)) {
(void)putchar('*');