mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 23:43:25 +00:00
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:
parent
22e5252fed
commit
568dcd5fca
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96681
@ -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);
|
||||
|
@ -381,6 +381,7 @@ printtype(u_int mode)
|
||||
(void)putchar('%');
|
||||
return (1);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (mode & (S_IXUSR | S_IXGRP | S_IXOTH)) {
|
||||
(void)putchar('*');
|
||||
|
Loading…
Reference in New Issue
Block a user